X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=b9423a83fdfd097512a280b7cae0936df943344c;hb=89f4c930868346064b4046c7d08ccfa6fdd96cff;hp=cfee2eb421b9db897678517910e220508eca55b5;hpb=d69d4a90442159bdc8d1bf07fdac3dcdb9292327;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index cfee2eb421..b9423a83fd 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1606,6 +1606,11 @@ $password: the password being submitted and found wanting $retval: a LoginForm class constant with authenticateUserData() return value (SUCCESS, WRONG_PASS, etc.). +'LoginPasswordResetMessage': User is being requested to reset their password on login. +Use this hook to change the Message that will be output on Special:ChangePassword. +&$msg: Message object that will be shown to the user +$username: Username of the user who's password was expired. + 'LogLine': Processes a single log entry on Special:Log. $log_type: string for the type of log entry (e.g. 'move'). Corresponds to logging.log_type database field. @@ -1667,6 +1672,12 @@ $mediaWiki: The $mediawiki object $title: title of the message (string) $message: value (string), change it to the message you want to define +'MessageCache::get': When fetching a message. Can be used to override the key +for customisations. Given and returned message key must be in special format: +1) first letter must be in lower case according to the content language. +2) spaces must be replaced with underscores +&$key: message key (string) + 'MessageCacheReplace': When a message page is changed. Useful for updating caches. $title: name of the page changed. @@ -1967,6 +1978,12 @@ $form: the PreferencesForm object. This is a ContextSource as well $key: the section name &$legend: the legend text. Defaults to wfMessage( "prefs-$key" )->text() but may be overridden +'PreferencesFormPreSave': Override preferences being saved + $formData: array of user submitted data + $form: PreferencesForm object, also a ContextSource + $user: User object with preferences to be saved set + &$result: boolean indicating success + 'PrefixSearchBackend': Override the title prefix search used for OpenSearch and AJAX search suggestions. Put results into &$results outparam and return false. $ns : array of int namespace keys to search in @@ -2019,6 +2036,10 @@ IContextSource $context: The RequestContext the skin is being created for. &$skin: A variable reference you may set a Skin instance or string key on to override the skin that will be used for the context. +'ResetPasswordExpiration': Allow extensions to set a default password expiration +$user: The user having their password expiration reset +&$newExpire: The new expiration date + 'ResetSessionID': Called from wfResetSessionID $oldSessionID: old session id $newSessionID: new session id @@ -2187,6 +2208,13 @@ link" tab. $sktemplate: SkinTemplate object $nav_urls: array of tabs +'SkinTemplateGetLanguageLink': After building the data for a language link from +which the actual html is constructed. +&$languageLink: array containing data about the link. The following keys can be + modified: href, text, title, class, lang, hreflang. Each of them is a string. +$languageLinkTitle: Title object belonging to the external language link +$title: Title object of the page the link belongs to + To alter the structured navigation links in SkinTemplates, there are three hooks called in different spots: @@ -2230,6 +2258,11 @@ $dummy: Called when SkinTemplateToolboxEnd is used from a BaseTemplate skin, dummy parameter with "$dummy=false" in their code and return without echoing any HTML to avoid creating duplicate toolbox items. +'SkinVectorStyleModules': Called when defining the list of module styles to be +loaded by the Vector skin. +$skin: SkinVector object +&$styles: Array of module names whose style will be loaded for the skin + 'SoftwareInfo': Called by Special:Version for returning information about the software. $software: The array of software in format 'name' => 'version'. See @@ -2515,6 +2548,7 @@ $nt: new title $user: user who did the move $pageid: database ID of the page that's been moved $redirid: database ID of the created redirect +$reason: reason for the move 'TitleReadWhitelist': Called at the end of read permissions checks, just before adding the default error message if nothing allows the user to read the page. If