MediaWiki REL1_35
|
Public Member Functions | |
onUserRetrieveNewTalks ( $user, &$talks) | |
This hook is called when retrieving "You have new messages!" message(s). | |
Definition at line 11 of file UserRetrieveNewTalksHook.php.
MediaWiki\User\Hook\UserRetrieveNewTalksHook::onUserRetrieveNewTalks | ( | $user, | |
& | $talks | ||
) |
This hook is called when retrieving "You have new messages!" message(s).
To override the notification, populate the $talks array and then return false. If the hook returns true, $talks will not be used.
User | $user | User retrieving new talks messages |
array[] | &$talks | Array in which each element is an associative array describing a notification, with the following keys:
|
Implemented in MediaWiki\HookContainer\HookRunner.