X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=e7fa89bae4fb119e6154d1415f084de081eb4d1f;hb=491993a2f5c0321e1511571d5207162b31ef2c20;hp=390da775461c52599841cc5b7be84b90c739659d;hpb=f73c54a0a47585f4baf1aee38a4a1a059bfb259c;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 390da77546..e7fa89bae4 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -277,6 +277,11 @@ $user: the User object about to be created (read-only, incomplete) $targetUser: the user whom to send talk page email notification $title: the page title +'SendWatchlistEmailNotification': Return true to send watchlist email notification +$targetUser: the user whom to send watchlist email notification +$title: the page title +$this: EmailNotification object + 'AbortChangePassword': Return false to cancel password change. $user: the User object to which the password change is occuring $mOldpass: the old password provided by the user @@ -1606,6 +1611,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 +1677,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. @@ -2025,6 +2041,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 @@ -2533,6 +2553,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