X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=2d268b8ab3b2638f3fe583ece8e0c31a6c4b6103;hb=11b77f3d52564fce296d0ab8a2866e8a6736098b;hp=5e2269abb7747826cf00f263401595624681103d;hpb=cdc391b16db021e71e6ca9c00f2b7d341c1ca5f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 5e2269abb7..2d268b8ab3 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -641,16 +641,14 @@ $popts: parser options to be used for pre-save transformation 'ArticleProtect': Before an article is protected. $wikiPage: the WikiPage being protected $user: the user doing the protection -$protect: boolean whether this is a protect or an unprotect +$protect: Set of restriction keys $reason: Reason for protect -$moveonly: boolean whether this is for move only or not 'ArticleProtectComplete': After an article is protected. $wikiPage: the WikiPage that was protected $user: the user who did the protection -$protect: boolean whether it was a protect or an unprotect +$protect: Set of restriction keys $reason: Reason for protect -$moveonly: boolean whether it was for move only or not 'ArticlePurge': Before executing "&action=purge". $wikiPage: WikiPage (object) to purge @@ -662,7 +660,8 @@ $oldPageID: the page ID of the revision when archived (may be null) 'ArticleRevisionVisibilitySet': Called when changing visibility of one or more revisions of an article. -&$title: Title object of the article +$title: Title object of the article +$ids: Ids to set the visibility for 'ArticleRollbackComplete': After an article rollback is completed. $wikiPage: the WikiPage that was edited @@ -1271,20 +1270,21 @@ $user: User being checked $confirmed: Whether or not the email address is confirmed 'EmailUser': Before sending email from one user to another. -$to: address of receiving user -$from: address of sending user +$to: MailAddress object of receiving user +$from: MailAddress object of sending user $subject: subject of the mail $text: text of the mail +&$error: Out-param for an error 'EmailUserCC': Before sending the copy of the email to the author. -$to: address of receiving user -$from: address of sending user +$to: MailAddress object of receiving user +$from: MailAddress object of sending user $subject: subject of the mail $text: text of the mail 'EmailUserComplete': After sending email from one user to another. -$to: address of receiving user -$from: address of sending user +$to: MailAddress object of receiving user +$from: MailAddress object of sending user $subject: subject of the mail $text: text of the mail @@ -1376,6 +1376,9 @@ $auto: The extracted part of the parsed comment before the call to the hook. $post: Boolean, true if there is text after this autocomment $title: An optional title object used to links to sections. Can be null. $local: Boolean indicating whether section links should refer to local page. +$wikiId: String containing the ID (as used by WikiMap) of the wiki from which the + autocomment originated; null for the local wiki. Added in 1.26, should default + to null in handler functions, for backwards compatibility. 'GalleryGetModes': Get list of classes that can render different modes of a gallery. @@ -1576,9 +1579,10 @@ $imagePage: ImagePage object ($this) &$html: HTML for the hook to add 'ImagePageFileHistoryLine': Called when a file history line is constructed. +$imagePage: ImagePage object ($this) $file: the file -$line: the HTML of the history line -$css: the line CSS class +&$line: the HTML of the history line +&$css: the line CSS class 'ImagePageFindFile': Called when fetching the file associated with an image page. @@ -1628,6 +1632,11 @@ Return false to stop further processing of the tag $reader: XMLReader object $revisionInfo: Array of information +'ImportSources': Called when reading from the $wgImportSources configuration +variable. Can be used to lazy-load the import sources list. +&$importSources: The value of $wgImportSources. Modify as necessary. See the +comment in DefaultSettings.php for the detail of how to structure this array. + 'InfoAction': When building information to display on the action=info page. $context: IContextSource object &$pageInfo: Array of information @@ -1841,6 +1850,10 @@ optional localisation messages &$ignored: Array of ignored message keys &$optional: Array of optional message keys +'LocalUserCreated': Called when a local user has been created +$user: User object for the created user +$autocreated: Boolean, whether this was an auto-creation + 'LogEventsListGetExtraInputs': When getting extra inputs to display on Special:Log for a specific log type $type: String of log type being displayed @@ -2155,9 +2168,10 @@ $article: the article that the history is loading for $context: RequestContext object 'PageHistoryLineEnding': Right before the end