Manual:Hooks/UserClearNewTalkNotification
From MediaWiki.org
| UserClearNewTalkNotification | |
|---|---|
| Available from version 1.5.7 (r13012) called when clearing the "You have new messages!" message, return false to not delete it |
|
*Define function: |
function fnMyHook( $user ) { ... }
|
*Attach hook: |
$wgHooks['UserClearNewTalkNotification'][] = 'MyExtensionHooks::someExample'; |
| Called from: | User.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserClearNewTalkNotification extensions.
[edit] Details
$user: User (object) that'll clear the message