|
MediaWiki REL1_35
|
Stable to implement. More...

Public Member Functions | |
| onGetNewMessagesAlert (&$newMessagesAlert, $newtalks, $user, $out) | |
| Use this hook to disable or modify the new messages alert. | |
Stable to implement.
Definition at line 12 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 User::getNewMessageLinks.) |
| 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.