X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=95cea3dc838381f2963943abf272bd56fb496e21;hb=1f41c966beb6ca0ef1fcbe8d722c94769981a183;hp=63d6aafd4a39ba7984f62bb4f902b3268acce8d9;hpb=2f3c0ca5d1be7889c3899e6e7505dfaf66120f6a;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 63d6aafd4a..95cea3dc83 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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