Manual:Hooks/UserRetrieveNewTalks
Appearance
This feature was removed completely in version 1.37.0 (after being deprecated in 1.35.0). |
UserRetrieveNewTalks | |
---|---|
Available from version 1.5.7 (r13012, CodeReview archive) Removed in version 1.37.0 (Gerrit change 683957) called when retrieving "You have new messages!" message(s) | |
Define function: | public static function onUserRetrieveNewTalks( &$user, &$talks ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UserRetrieveNewTalks": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserRetrieveNewTalks"
}
}
|
Called from: | File(s): User.php |
Interface: | UserRetrieveNewTalksHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UserRetrieveNewTalks extensions.
Details
[edit]- &$user: user retrieving new talks messages
- &$talks: reference to array of new talks page(s)