MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onGetNewMessagesAlert (&$newMessagesAlert, $newtalks, $user, $out) | |
Use this hook to disable or modify the new messages alert. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetNewMessagesAlert" to register handlers implementing this interface.
Definition at line 15 of file GetNewMessagesAlertHook.php.
MediaWiki\Hook\GetNewMessagesAlertHook::onGetNewMessagesAlert | ( | & | $newMessagesAlert, |
$newtalks, | |||
$user, | |||
$out ) |
Use this hook to disable or modify the new messages alert.
string | &$newMessagesAlert | Empty string by default. If the user has new talk page messages, this should be populated with an alert message to that effect. |
array | $newtalks | Empty array if the user has no new messages, or an array containing links and revisions if there are new messages. (See Skin::getNewtalks().) |
User | $user | User who is loading the page |
OutputPage | $out | To check what type of page the user is on |
Implemented in MediaWiki\HookContainer\HookRunner.