Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7404998
UserCanSendEmailHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
UserCanSendEmailHook.php
View Options
<?php
namespace
MediaWiki\User\Hook
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserCanSendEmail" to register handlers implementing this interface.
*
* @ingroup Hooks
* @deprecated since 1.41, handle the EmailUserAuthorizeSend hook instead.
*/
interface
UserCanSendEmailHook
{
/**
* Use this hook to override User::canSendEmail() permission check.
*
* @since 1.35
*
* @param User $user User (object) whose permission is being checked
* @param bool|string|array &$hookErr Out-param for the error. Passed as the parameters to
* OutputPage::showErrorPage.
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onUserCanSendEmail
(
$user
,
&
$hookErr
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 19:32 (21 h, 56 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0d/86/f7152db60d34253f6198bffeef39
Default Alt Text
UserCanSendEmailHook.php (781 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment