r58696 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58695‎ | r58696 | r58697 >
Date:10:33, 7 November 2009
Author:ialex
Status:ok
Tags:
Comment:
Sync docs/hooks.txt:
* removed AbortNewAccountAuto since it was reverted
* added ArticleConfirmDelete and ImgAuthBeforeStream
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -259,12 +259,6 @@
260260 $user: the User object about to be created (read-only, incomplete)
261261 $message: out parameter: error message to display on abort
262262
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 -
269263 'AddNewAccount': after a user account is created
270264 $user: the User object that was created. (Parameter added in 1.7)
271265 $byEmail: true when account was created "by email" (added in 1.12)
@@ -356,6 +350,12 @@
357351 $article: the article (object) being loaded from the database
358352 $content: the content (string) of the article
359353
 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+
360360 'ArticleDelete': before an article is deleted
361361 $article: the article (object) being deleted
362362 $user: the user (object) deleting the article
@@ -849,6 +849,20 @@
850850 &$file: File object
851851 &$displayFile: displayed File object
852852
 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+
853867 'InitializeArticleMaybeRedirect': MediaWiki check to see if title is a redirect
854868 $title: Title object ($wgTitle)
855869 $request: WebRequest

Status & tagging log