X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=47654ce9df8d2c352584c46387846aa3b470c053;hb=50d7729bea870759e3ff9dfc414ea6b22d99d23b;hp=b7e9adb5f32a2b9361a71a81721da3a435cfbdd9;hpb=e4fc2a8ab775f9dd14ddb2addb3a4f96d9958b16;p=lhc%2Fweb%2Fwiklou.git
diff --git a/docs/hooks.txt b/docs/hooks.txt
index b7e9adb5f3..47654ce9df 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -427,6 +427,8 @@ $user: the user (object) deleting the article
$reason: the reason (string) the article is being deleted
$error: if the deletion was prohibited, the (raw HTML) error message to display
(added in 1.13)
+$status: Status object, modify this to throw an error. Overridden by $error
+ (added in 1.20)
'ArticleDeleteComplete': after an article is deleted
$article: the WikiPage that was deleted
@@ -710,8 +712,9 @@ $descending: Query direction, false for ascending, true for descending
'ContributionsLineEnding': Called before a contributions HTML line is finished
$page: SpecialPage object for contributions
-$ret: the HTML line
+&$ret: the HTML line
$row: the DB row for this line
+&$classes: the classes to add to the surrounding
'ContributionsToolLinks': Change tool links above Special:Contributions
$id: User identifier
@@ -1126,8 +1129,16 @@ $prefix: interwiki prefix we are looking for.
&$iwData: output array describing the interwiki with keys iw_url, iw_local,
iw_trans and optionally iw_api and iw_wikiid.
+'InternalParseBeforeSanitize': during Parser's internalParse method just before the
+parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/
+onlyinclude and other processings. Ideal for syntax-extensions after template/parser
+function execution which respect nowiki and HTML-comments.
+&$parser: Parser object
+&$text: string containing partially parsed text
+&$stripState: Parser's internal StripState object
+
'InternalParseBeforeLinks': during Parser's internalParse method before links
-but after noinclude/includeonly/onlyinclude and other processing.
+but after nowiki/noinclude/includeonly/onlyinclude and other processings.
&$parser: Parser object
&$text: string containing partially parsed text
&$stripState: Parser's internal StripState object
@@ -1467,6 +1478,12 @@ A parser extension which depends on user options should install
this hook and append its values to the key.
$hash: reference to a hash key string which can be modified
+'ParserAfterParse': Called from Parser::parse() just after the call to
+Parser::internalParse() returns
+$parser: parser object
+$text: text being parsed
+$stripState: stripState used (object)
+
'ParserAfterStrip': Same as ParserBeforeStrip
'ParserAfterTidy': Called after Parser::tidy() in Parser::parse()
@@ -1835,6 +1852,14 @@ Each key maps to an associative array with a 'msg' (message key) and a 'default'
hook to remove a core special page
$list: list (array) of core special pages
+'SpecialPageAfterExecute': called after SpecialPage::execute
+$special: the SpecialPage object
+$subPage: the subpage string or null if no subpage was specified
+
+'SpecialPageBeforeExecute': called before SpecialPage::execute
+$special: the SpecialPage object
+$subPage: the subpage string or null if no subpage was specified
+
'SpecialPasswordResetOnSubmit': when executing a form submission on Special:PasswordReset
$users: array of User objects
$data: array of data submitted by the user