s/one time/once/
[lhc/web/wiklou.git] / docs / hooks.txt
index 63d6aaf..95cea3d 100644 (file)
@@ -267,6 +267,17 @@ $article: the article that was deleted
 $user: the user that deleted the article
 $reason: the reason the article was deleted
 
+'ArticleInsertComplete': After an article is created
+$article: Article created
+$user: User creating the article
+$text: New content
+$summary: Edit summary/comment
+$isMinor: Whether or not the edit was marked as minor
+$isWatch: (No longer used)
+$section: (No longer used)
+$flags: Flags passed to Article::doEdit()
+$revision: New Revision of the article
+
 'ArticleProtect': before an article is protected
 $article: the article being protected
 $user: the user doing the protection
@@ -290,6 +301,17 @@ $isminor: minor flag
 $iswatch: watch flag
 $section: section #
 
+'ArticleSaveComplete': After an article has been updated
+$article: Article modified
+$user: User performing the modification
+$text: New content
+$summary: Edit summary/comment
+$isMinor: Whether or not the edit was marked as minor
+$isWatch: (No longer used)
+$section: (No longer used)
+$flags: Flags passed to Article::doEdit()
+$revision: New Revision of the article
+
 'ArticleSaveComplete': after an article is saved
 $article: the article (object) saved
 $user: the user (object) who saved the article
@@ -299,6 +321,8 @@ $isminor: minor flag
 $iswatch: watch flag
 $section: section #
 
+wfRunHooks( 'ArticleSaveComplete', array( &$this, &$wgUser, $text, $summary, $flags & EDIT_MINOR, null, null, &$flags, $revision ) );
+
 'ArticleUndeleted': When one or more revisions of an article are restored
 $title: Title corresponding to the article restored
 $create: Whether or not the restoration caused the page to be created
@@ -355,6 +379,11 @@ $user: the user who did the block (not the one being blocked)
 $isbn: ISBN to show information for
 $output: OutputPage object in use
 
+'ContributionsToolLinks': Change tool links above Special:Contributions
+$id: User identifier
+$title: User page title
+&$tools: Array of tool links
+
 'CustomEditor': When invoking the page editor
 $article: Article being edited
 $user: User performing the edit
@@ -459,6 +488,14 @@ after noinclude/includeonly/onlyinclude and other processing.
 &$text: string containing partially parsed text
 &$this->mStripState: Parser's internal StripState object
 
+'isValidPassword': Override the result of User::isValidPassword()
+$password: Desired password
+&$result: Set this and return false to override the internal checks
+$user: User the password is being validated for
+
+'LinksUpdateConstructed': At the end of LinksUpdate() is contruction.
+&$linksUpdate: the LinkUpdate object
+
 'LoginAuthenticateAudit': a login attempt for a valid user account either succeeded or failed.
                           No return data is accepted; this hook is for auditing only.
 $user: the User object being authenticated against
@@ -556,18 +593,8 @@ Alter the contents of $siteNotice to add to/alter the sitenotice/anonnotice.
 &$sktemplate: SkinTemplate object
 &$tpl: Template engine object
 
-'SpecialContribsSubEnd': Right before the contribsub (the talk, log, etc.
-links) are added above Special:Contributions. Return not evaluated, audit only.
-$nt: The user whose contributions are being accessed.
-&$tools: An array of links that will be added above Special:Contributions,
-delimited by '|'.
-
-'SpecialContributionsBeforeMainOutput': Before the contributions form. Return
-not evaluated, audit only.
-$id: The id of the user whose contributions are being accessed.
-
-'TitleLinkUpdatesAfterCompletion': after Linker->doUpdate() is called
-&$title: title of the updated page
+'SpecialContributionsBeforeMainOutput': Before the form on Special:Contributions
+$id: User identifier
 
 'TitleMoveComplete': after moving an article (title)
 $old: old title
@@ -647,6 +674,10 @@ $article: article object watched
 $user: user that watched
 $article: article object that was watched
 
+'UserGetRights': Called in User::getRights()
+$user: User to get rights for
+&$rights: Current rights
+
 'UserEffectiveGroups': Called in User::getEffectiveGroups()
 $user: User to get groups for
 &$groups: Current effective groups