Manual:Hooks/EmailUserPermissionsErrors
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.41.0. Please see EmailUserAuthorizeSend for an alternative way to use this feature. |
EmailUserPermissionsErrors | |
---|---|
Available from version 1.16.0 Retrieve permissions errors for emailing a user. | |
Define function: | public static function onEmailUserPermissionsErrors( $user, $editToken, &$hookErr ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EmailUserPermissionsErrors": "MediaWiki\\Extension\\MyExtension\\Hooks::onEmailUserPermissionsErrors"
}
}
|
Called from: | File(s): specials/SpecialEmailUser.php |
Interface: | EmailUserPermissionsErrorsHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EmailUserPermissionsErrors extensions.
Details edit
- $user: The user who is trying to email another user.
- $editToken: The user's edit token.
- &$hookErr: Out-param for the error. Passed as the parameters to OutputPage::showErrorPage.