Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -259,12 +259,6 @@ |
260 | 260 | $user: the User object about to be created (read-only, incomplete) |
261 | 261 | $message: out parameter: error message to display on abort |
262 | 262 | |
263 | | -'AbortNewAccountAuto': Return false to cancel account creation when the |
264 | | - request is coming from an AuthPlugin or ExtUser, rather than a |
265 | | - manually-submitted CreateAccount form. |
266 | | -$user: the User object about to be created (read-only, incomplete) |
267 | | -$message: out parameter: error message to display on abort |
268 | | - |
269 | 263 | 'AddNewAccount': after a user account is created |
270 | 264 | $user: the User object that was created. (Parameter added in 1.7) |
271 | 265 | $byEmail: true when account was created "by email" (added in 1.12) |
— | — | @@ -356,6 +350,12 @@ |
357 | 351 | $article: the article (object) being loaded from the database |
358 | 352 | $content: the content (string) of the article |
359 | 353 | |
| 354 | +'ArticleConfirmDelete': before writing the confirmation form for article |
| 355 | + deletion |
| 356 | +$article: the article (object) being deleted |
| 357 | +$output: the OutputPage object ($wgOut) |
| 358 | +&$reason: the reason (string) the article is being deleted |
| 359 | + |
360 | 360 | 'ArticleDelete': before an article is deleted |
361 | 361 | $article: the article (object) being deleted |
362 | 362 | $user: the user (object) deleting the article |
— | — | @@ -849,6 +849,20 @@ |
850 | 850 | &$file: File object |
851 | 851 | &$displayFile: displayed File object |
852 | 852 | |
| 853 | +'ImgAuthBeforeStream': executed before file is streamed to user, but only when |
| 854 | + using img_auth.php |
| 855 | +&$title: the Title object of the file as it would appear for the upload page |
| 856 | +&$path: the original file and path name when img_auth was invoked by the the web |
| 857 | + server |
| 858 | +&$name: the name only component of the file |
| 859 | +&$result: The location to pass back results of the hook routine (only used if |
| 860 | + failed) |
| 861 | + $result[0]=The index of the header message |
| 862 | + $result[1]=The index of the body text message |
| 863 | + $result[2 through n]=Parameters passed to body text message. Please note the |
| 864 | + header message cannot receive/use parameters. |
| 865 | + |
| 866 | + |
853 | 867 | 'InitializeArticleMaybeRedirect': MediaWiki check to see if title is a redirect |
854 | 868 | $title: Title object ($wgTitle) |
855 | 869 | $request: WebRequest |