From d888481866271bd90c7766a5df4754636b2df1ec Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 12 Oct 2012 08:15:13 +0200 Subject: [PATCH] Follow-up I186669a5 (4b62b03): reorder hooks alphabetically Change-Id: I399f10df254762c4dd05e2c6fb83c29cc6121f81 --- docs/hooks.txt | 66 +++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 10a341d9a1..46ddcfea7e 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -502,17 +502,6 @@ $section: (No longer used) $flags: Flags passed to WikiPage::doEditContent() $revision: New Revision of the article -'PageContentInsertComplete': After a new article is created -$article: WikiPage created -$user: User creating the article -$content: New content as a Content object -$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 WikiPage::doEditContent() -$revision: New Revision of the article - 'ArticleMergeComplete': after merging to article using Special:Mergehistory $targetTitle: target title (object) $destTitle: destination title (object) @@ -570,15 +559,6 @@ $isminor: minor flag $iswatch: watch flag $section: section # -'PageContentSave': before an article is saved. -$article: the WikiPage (object) being saved -$user: the user (object) saving the article -$content: the new article content, as a Content object -$summary: the article summary (comment) -$isminor: minor flag -$iswatch: watch flag -$section: section # - 'ArticleSaveComplete': After an article has been updated. DEPRECATED, use PageContentSaveComplete instead. $article: WikiPage modified $user: User performing the modification @@ -592,19 +572,6 @@ $revision: New Revision of the article $status: Status object about to be returned by doEditContent() $baseRevId: the rev ID (or false) this edit was based on -'PageContentSaveComplete': After an article has been updated -$article: WikiPage modified -$user: User performing the modification -$content: New content, as a Content object -$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 WikiPage::doEditContent() -$revision: New Revision of the article -$status: Status object about to be returned by doEditContent() -$baseRevId: the rev ID (or false) this edit was based on - 'ArticleUndelete': 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 @@ -1565,12 +1532,45 @@ $categories: associative array, keys are category names, values are category $links: array, intended to hold the result. Must be an associative array with category types as keys and arrays of HTML links as values. +'PageContentInsertComplete': After a new article is created +$article: WikiPage created +$user: User creating the article +$content: New content as a Content object +$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 WikiPage::doEditContent() +$revision: New Revision of the article + 'PageContentLanguage': allows changing the language in which the content of a page is written. Defaults to the wiki content language ($wgContLang). $title: Title object &$pageLang: the page content language (either an object or a language code) $wgLang: the user language +'PageContentSave': before an article is saved. +$article: the WikiPage (object) being saved +$user: the user (object) saving the article +$content: the new article content, as a Content object +$summary: the article summary (comment) +$isminor: minor flag +$iswatch: watch flag +$section: section # + +'PageContentSaveComplete': After an article has been updated +$article: WikiPage modified +$user: User performing the modification +$content: New content, as a Content object +$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 WikiPage::doEditContent() +$revision: New Revision of the article +$status: Status object about to be returned by doEditContent() +$baseRevId: the rev ID (or false) this edit was based on + 'PageHistoryBeforeList': When a history page list is about to be constructed. $article: the article that the history is loading for -- 2.20.1