MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onUserCanSendEmail ( $user, &$hookErr) | |
Use this hook to override User::canSendEmail() permission check. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "UserCanSendEmail" to register handlers implementing this interface.
Definition at line 14 of file UserCanSendEmailHook.php.
MediaWiki\User\Hook\UserCanSendEmailHook::onUserCanSendEmail | ( | $user, | |
& | $hookErr ) |
Use this hook to override User::canSendEmail() permission check.
User | $user | User (object) whose permission is being checked |
bool | string | array | &$hookErr | Out-param for the error. Passed as the parameters to OutputPage::showErrorPage. |
Implemented in MediaWiki\HookContainer\HookRunner.