Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -263,7 +263,14 @@ |
264 | 264 | $user: the User object that was created. (Parameter added in 1.7) |
265 | 265 | $byEmail: true when account was created "by email" (added in 1.12) |
266 | 266 | |
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 |
268 | 275 | called to take care of any cleanup. |
269 | 276 | $user: The user who we left the message for. |
270 | 277 | $article: The article the message was left on. |
— | — | @@ -898,7 +905,30 @@ |
899 | 906 | $result[2 through n]=Parameters passed to body text message. Please note the |
900 | 907 | header message cannot receive/use parameters. |
901 | 908 | |
| 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 |
902 | 913 | |
| 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 | + |
903 | 933 | 'InitializeArticleMaybeRedirect': MediaWiki check to see if title is a redirect |
904 | 934 | $title: Title object ($wgTitle) |
905 | 935 | $request: WebRequest |
— | — | @@ -1115,7 +1145,7 @@ |
1116 | 1146 | Note: this is only run for the Monobook skin. This hook is deprecated and |
1117 | 1147 | may be removed in the future. To add items to the toolbox you should use |
1118 | 1148 | the SkinTemplateToolboxEnd hook instead, which works for all |
1119 | | -'SkinTemplate'-type skins. |
| 1149 | +"SkinTemplate"-type skins. |
1120 | 1150 | $tools: array of tools |
1121 | 1151 | |
1122 | 1152 | 'NewRevisionFromEditComplete': called when a revision was inserted |
— | — | @@ -1344,7 +1374,7 @@ |
1345 | 1375 | |
1346 | 1376 | 'SetupAfterCache': Called in Setup.php, after cache objects are set |
1347 | 1377 | |
1348 | | -‘SetupUserMessageArticle': Called in User::leaveUserMessage() before |
| 1378 | +'SetupUserMessageArticle': Called in User::leaveUserMessage() before |
1349 | 1379 | anything has been posted to the article. |
1350 | 1380 | $user: The user who we left the message for. |
1351 | 1381 | &$article: The article that will be posted to. |