X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=862f9f0b4b8b89930598e2b6f7654b7293c2b615;hb=237cc3bd0a89b73a43726c3aab8851daf8b35265;hp=7efd5d2cad42df62314eb0eafff58f45691f6901;hpb=299b7b412731f60866885c0532558c349ba3da76;p=lhc%2Fweb%2Fwiklou.git
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 7efd5d2cad..862f9f0b4b 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -592,6 +592,10 @@ Use this hook to extend action=tokens with new token types.
&$tokenTypes: supported token types in format 'type' => callback function
used to retrieve this type of tokens.
+'ApiValidatePassword': Called from ApiValidatePassword.
+$module: ApiValidatePassword instance.
+&$r: Result array.
+
'Article::MissingArticleConditions': Before fetching deletion & move log entries
to display a message of a non-existing page being deleted/moved, give extensions
a chance to hide their (unrelated) log entries.
@@ -1190,6 +1194,18 @@ $page: SpecialPage object for DeletedContributions
$row: the DB row for this line
&$classes: the classes to add to the surrounding
+'DifferenceEngineAfterLoadNewText': called in DifferenceEngine::loadNewText()
+after the new revision's content has been loaded into the class member variable
+$differenceEngine->mNewContent but before returning true from this function.
+$differenceEngine: DifferenceEngine object
+
+'DifferenceEngineLoadTextAfterNewContentIsLoaded': called in
+DifferenceEngine::loadText() after the new revision's content has been loaded
+into the class member variable $differenceEngine->mNewContent but before
+checking if the variable's value is null.
+This hook can be used to inject content into said class member variable.
+$differenceEngine: DifferenceEngine object
+
'DifferenceEngineMarkPatrolledLink': Allows extensions to change the "mark as patrolled" link
which is shown both on the diff header as well as on the bottom of a page, usually
wrapped in a span element which has class="patrollink".
@@ -1268,6 +1284,12 @@ $differenceEngine: DifferenceEngine object
object into the diff view
$out: OutputPage object
+'DifferenceEngineShowDiffPageMaybeShowMissingRevision': called in
+DifferenceEngine::showDiffPage() when revision data cannot be loaded.
+Return false in order to prevent displaying the missing revision message
+(i.e. to prevent DifferenceEngine::showMissingRevision() from being called).
+$differenceEngine: DifferenceEngine object
+
'DiffRevisionTools': Override or extend the revision tools available from the
diff view, i.e. undo, etc.
$newRev: Revision object of the "new" revision