Follow-up to r58633 and r58628 (lqt): Rename Title::getProtectionTypes to Title:...
[lhc/web/wiklou.git] / docs / hooks.txt
index a139a8e..45757b0 100644 (file)
@@ -849,6 +849,10 @@ $page: ImagePage object
 &$file: File object
 &$displayFile: displayed File object
 
+'ImagePageShowTOC': called when the file toc on an image page is generated
+$page: ImagePage object
+&$toc: Array of <li> strings
+
 'ImgAuthBeforeStream': executed before file is streamed to user, but only when
        using img_auth.php
 &$title: the Title object of the file as it would appear for the upload page
@@ -1256,11 +1260,6 @@ $errorMsg: an html message string of an error
 $article: the page the form is shown for
 $out: OutputPage object
 
-'ProtectionFormGetApplicableTypes': Allows extensions to modify the types of protection
-  that can be applied.
-$title: The title in question.
-&$types: The types of protection available.
-
 'RawPageViewBeforeOutput': Right before the text is blown out in action=raw
 &$obj: RawPage object
 &$text: The text that's going to be the output
@@ -1499,6 +1498,11 @@ database result
 &$titleArray: set this to an object to override the default object returned
 $res: database result used to create the object
 
+'TitleGetRestrictionTypes': Allows extensions to modify the types of protection
+  that can be applied.
+$title: The title in question.
+&$types: The types of protection available.
+
 'TitleMoveComplete': after moving an article (title)
 $old: old title
 $nt: new title