Manual:findHooks.php

From mediawiki.org
Other languages:
MediaWiki version:
1.34

Details[edit]

findHooks.php file is a maintenance script that compares documented and actually present mismatches. This script assumes that hook names in hooks.txt are at the beginning of a line and single quoted and hooks names in code are the first parameter of wfRunHooks.

Options/Arguments[edit]

Option Description Required?
--online Check against MediaWiki.org hook documentation Optional

Usage[edit]

php maintenance/findHooks.php [ --online ]

Basic run[edit]

Terminal
$ php maintenance/findHooks.php

Undocumented: BeforeResetNotificationTimestamp
Documented and not found: ResourceLoaderJqueryMsgModuleMagicWords
Unclear hook calls: Hooks::run( $action . 'ArticleComplete', [ $this->getUser(), &$page ] );(/wiki/includes/specials/SpecialEditWatchlist.php)
Different parameter count: DeleteUnknownPreferences: Doc: 1 vs. Code: 2
Different parameter count: NewRevisionFromEditComplete: Doc: 5 vs. Code: 4
Different parameter count: PageDeletionDataUpdates: Doc: 0 vs. Code: 3
Different parameter count: RevisionDataUpdates: Doc: 0 vs. Code: 3
Different parameter reference: RevisionInsertComplete: References different: Doc: $revision vs. Code: &$legacyRevision
Different parameter reference: UnwatchArticleComplete: References different: Doc: $user vs. Code: &$user

The script finished with errors.

Check against MediaWiki.org[edit]

Terminal
$ php maintenance/findHooks.php --online

Undocumented: APIEditBeforeSave
Undocumented: APIQueryInfoTokens
Undocumented: APIQueryRecentChangesTokens
Undocumented: APIQueryRevisionsTokens
Undocumented: APIQueryUsersTokens
Undocumented: ApiRsdServiceApis
Undocumented: ApiTokensGetTokenTypes
Undocumented: ArticleContentViewCustom
Undocumented: ArticleEditUpdates
Undocumented: ArticleRevisionUndeleted
Undocumented: ArticleRollbackComplete
Undocumented: ArticleUndeleteLogEntry
Undocumented: BaseTemplateToolbox
Undocumented: BeforeHttpsRedirect
Undocumented: BeforeResetNotificationTimestamp
Undocumented: CanIPUseHTTPS
Undocumented: ChangePasswordForm
Undocumented: DatabaseOraclePostInit
Undocumented: DiffRevisionTools
Undocumented: DiffViewHeader
Undocumented: EditPage::showStandardInputs:options
Undocumented: EmailUserCC
Undocumented: ExtensionTypes
Undocumented: GetBlockedStatus
Undocumented: HistoryRevisionTools
Undocumented: LinkBegin
Undocumented: LinkEnd
Undocumented: LogException
Undocumented: NewRevisionFromEditComplete
Undocumented: PageContentInsertComplete
Undocumented: PageContentSaveComplete
Undocumented: ParserAfterStrip
Undocumented: ParserBeforeStrip
Undocumented: ParserBeforeTidy
Undocumented: ParserFetchTemplate
Undocumented: RevisionInsertComplete
Undocumented: SearchableNamespaces
Undocumented: SecondaryDataUpdates
Undocumented: SkinTemplateBuildNavUrlsNav_urlsAfterPermalink
Undocumented: SkinTemplateOutputPageBeforeExec
Undocumented: SkinTemplatePreventOtherActiveTabs
Undocumented: SkinTemplateTabAction
Undocumented: SkinTemplateToolboxEnd
Undocumented: TestCanonicalRedirect
Undocumented: TitleArrayFromResult
Undocumented: TitleMoveComplete
Undocumented: TitleMoveCompleting
Undocumented: UndeleteForm::showHistory
Undocumented: UndeleteForm::undelete
Undocumented: UndeleteShowRevision
Undocumented: UploadVerification
Undocumented: UserIsHidden
Undocumented: UserLoadFromSession
Undocumented: UserLoadOptions
Undocumented: UserRequiresHTTPS
Undocumented: UserResetAllOptions
Undocumented: UserRetrieveNewTalks
Undocumented: UserRights
Undocumented: UserSaveOptions
Undocumented: WikiPageDeletionUpdates
Documented and not found: ArticleParserOptions
Documented and not found: AuthPluginAutoCreate
Documented and not found: AuthPluginSetup
Documented and not found: BeforeParserFetchTemplateRevisionRecord
Documented and not found: BeforeRevertedTagUpdate
Documented and not found: DiffTools
Documented and not found: DifferenceEngineViewHeader
Documented and not found: EditPageGetDiffText
Documented and not found: EditPageGetPreviewText
Documented and not found: GetAllBlockActions
Documented and not found: GetMagicVariableIDs
Documented and not found: GetUserBlock
Documented and not found: HistoryTools
Documented and not found: HtmlCacheUpdaterAppendUrls
Documented and not found: HtmlCacheUpdaterVaryUrls
Documented and not found: LoadUserOptions
Documented and not found: MathMLChanged
Documented and not found: MinervaDiscoveryTools
Documented and not found: MultiContentSave
Documented and not found: PageDelete
Documented and not found: PageDeleteComplete
Documented and not found: PageMoveComplete
Documented and not found: PageMoveCompleting
Documented and not found: PageSaveComplete
Documented and not found: PageUndelete
Documented and not found: ParserBeforePreprocess
Documented and not found: ParserFetchTemplateData
Documented and not found: ParserPreSaveTransformComplete
Documented and not found: ParserTestParser
Documented and not found: ProtectionFormAddFormFields
Documented and not found: ResourceLoaderGetStartupModules
Documented and not found: ResourceLoaderJqueryMsgModuleMagicWords
Documented and not found: ResourceLoaderSiteModulePages
Documented and not found: ResourceLoaderSiteStylesModulePages
Documented and not found: RevisionFromEditComplete
Documented and not found: RevisionUndeleted
Documented and not found: RollbackComplete
Documented and not found: SaveUserOptions
Documented and not found: SearchResultProvideDescription
Documented and not found: SearchResultProvideThumbnail
Documented and not found: SkinAddFooterLinks
Documented and not found: SkinAfterPortlet
Documented and not found: SkinPageReadyConfig
Documented and not found: SpecialMuteModifyFormFields
Documented and not found: SpecialMuteSubmit
Documented and not found: UndeletePageToolLinks
Documented and not found: UserLoginForm
Documented and not found: XMPGetInfo
Documented and not found: XMPGetResults
Unclear hook calls: Hooks::run( $action . 'ArticleComplete', [ $this->getUser(), &$page ] );(/wiki/includes/specials/SpecialEditWatchlist.php)

The script finished with errors.

See also[edit]