Page MenuHomePhabricator

Update Documentation in hooks.txt
Closed, ResolvedPublic

Description

The following hooks are not documented in hooks.txt based on a grep for 'wfRunHooks':

ParserTestParser, ArticleAfterFetchContent, ArticleEditUpdateNewTalk, ArticleEditUpdatesDeleteFromRecentchanges, ArticlePageDataAfter, ArticlePageDataBefore, ArticlePurge, ArticleShow, ArticleShowComplete, ArticleViewRedirect, DisplayOldSubtitle, EditPage::showEditForm:initial, FetchChangesList, GetBlockedStatus, IsFileCacheable, IsTrustedProxy, LanguageGetMagic, LanguageGetSpecialPageAliases, LoadAllMessages, LoadExtensionsSchemaUpdates, MagicWordMagicWords, MagicWordwgVariableIDs, MessagesPreLoad, OutputPageParserOutput, ParserAfterStrip, ParserBeforeInternalParse, ParserClearState, ParserGetVariableValueSwitch, ParserGetVariableValueTs, ParserGetVariableValueVarCache, PrefsEmailAudit, PrefsPasswordAudit, SkinTemplateBuildContentActionUrlsAfterSpecialPage, SkinTemplateBuildNavUrlsNav_urlsAfterPermalink, SkinTemplateContentActions, SkinTemplatePreventOtherActiveTabs, SkinTemplateSetupPageCss, SkinTemplateTabs, SpecialPageExecuteAfterPage, SpecialPageExecuteBeforeHeader, SpecialPageExecuteBeforePage, SpecialSearchNogomatch, SpecialVersionExtensionTypes, UndeleteShowRevision, UserClearNewTalkNotification, UserGetRights, UserRetrieveNewTalks, wgQueryPages, BeforePageDisplay, ArticleFromTitle

In addition, some hooks are not sorted alphabetically in hooks.txt but were instead just added to the end of the list. If hooks.txt is updated, please also add one line of documentation to this table: http://www.mediawiki.org/wiki/Manual:Hooks#Alphabetical_list_of_hooks


Version: 1.11.x
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Manual:Hooks#Alphabetical_list_of_hooks

Details

Reference
bz11102

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:51 PM
bzimport set Reference to bz11102.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Note: There seem to be some false positives in the list above, e.g. UserGetRights and FetchChangesList are both documented.

Good haul, though...

ArticleShow and ArticleShowComplete don't exist either.

Looks to have been fixed by bug 12174. A grep against r29226 shows all hooks are now documented. There are probably still hooks missing from http://www.mediawiki.org/wiki/Manual:Hooks though. Thanks.