Manual:Hooks/EmailUserPermissionsErrors

From MediaWiki.org
Jump to: navigation, search
EmailUserPermissionsErrors
Available from version 1.16.0
Retrieve permissions errors for emailing a user.

*Define function:
function fnMyHook( $user, $editToken, &$hookErr ) { ... }

*Attach hook:
$wgHooks['EmailUserPermissionsErrors'][] = 'MyExtensionHooks::someExample';
Called from: SpecialEmailuser.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EmailUserPermissionsErrors extensions.


[edit] Details

  • $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.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox