Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5967001
GetNewMessagesAlertHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
GetNewMessagesAlertHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Output\OutputPage
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "GetNewMessagesAlert" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
GetNewMessagesAlertHook
{
/**
* Use this hook to disable or modify the new messages alert.
*
* @since 1.35
*
* @param 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.
* @param 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().)
* @param User $user User who is loading the page
* @param OutputPage $out To check what type of page the user is on
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onGetNewMessagesAlert
(
&
$newMessagesAlert
,
$newtalks
,
$user
,
$out
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 12:04 (3 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ca/c9/ee352d25028fd93d0fcb17e8da4d
Default Alt Text
GetNewMessagesAlertHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment