r68945 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68944‎ | r68945 | r68946 >
Date:14:33, 3 July 2010
Author:ialex
Status:ok (Comments)
Tags:
Comment:
* document new hooks
* fixed quotes
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -263,7 +263,14 @@
264264 $user: the User object that was created. (Parameter added in 1.7)
265265 $byEmail: true when account was created "by email" (added in 1.12)
266266
267 -‘AfterUserMessage': After a user message has been left, this hook is
 267+'AfterImportPage': When a page import is completed
 268+$title: Title under which the revisions were imported
 269+$origTitle: Title provided by the XML file
 270+$revCount: Number of revisions in the XML file
 271+$sRevCount: Number of sucessfully imported revisions
 272+$pageInfo: associative array of page information
 273+
 274+'AfterUserMessage': After a user message has been left, this hook is
268275 called to take care of any cleanup.
269276 $user: The user who we left the message for.
270277 $article: The article the message was left on.
@@ -898,7 +905,30 @@
899906 $result[2 through n]=Parameters passed to body text message. Please note the
900907 header message cannot receive/use parameters.
901908
 909+'ImportHandleLogItemXMLTag': When parsing a XML tag in a log item
 910+$reader: XMLReader object
 911+$logInfo: Array of information
 912+Return false to stop further processing of the tag
902913
 914+'ImportHandlePageXMLTag': When parsing a XML tag in a page
 915+$reader: XMLReader object
 916+$pageInfo: Array of information
 917+Return false to stop further processing of the tag
 918+
 919+'ImportHandleRevisionXMLTag': When parsing a XML tag in a page revision
 920+$reader: XMLReader object
 921+$revInfo: Array of information
 922+Return false to stop further processing of the tag
 923+
 924+'ImportHandleToplevelXMLTag': When parsing a top level XML tag
 925+$reader: XMLReader object
 926+Return false to stop further processing of the tag
 927+
 928+'ImportHandleUploadXMLTag': When parsing a XML tag in a file upload
 929+$reader: XMLReader object
 930+$revisionInfo: Array of information
 931+Return false to stop further processing of the tag
 932+
903933 'InitializeArticleMaybeRedirect': MediaWiki check to see if title is a redirect
904934 $title: Title object ($wgTitle)
905935 $request: WebRequest
@@ -1115,7 +1145,7 @@
11161146 Note: this is only run for the Monobook skin. This hook is deprecated and
11171147 may be removed in the future. To add items to the toolbox you should use
11181148 the SkinTemplateToolboxEnd hook instead, which works for all
1119 -'SkinTemplate'-type skins.
 1149+"SkinTemplate"-type skins.
11201150 $tools: array of tools
11211151
11221152 'NewRevisionFromEditComplete': called when a revision was inserted
@@ -1344,7 +1374,7 @@
13451375
13461376 'SetupAfterCache': Called in Setup.php, after cache objects are set
13471377
1348 -‘SetupUserMessageArticle': Called in User::leaveUserMessage() before
 1378+'SetupUserMessageArticle': Called in User::leaveUserMessage() before
13491379 anything has been posted to the article.
13501380 $user: The user who we left the message for.
13511381 &$article: The article that will be posted to.

Comments

#Comment by Reedy (talk | contribs)   20:01, 7 January 2011

Ping regarding documentation of ImportHandleUploadXmlTag - Special:Code/MediaWiki/66267#c12826

Status & tagging log