MediaWiki REL1_35
MediaWiki\Hook\EmailUserPermissionsErrorsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\EmailUserPermissionsErrorsHook:

Public Member Functions

 onEmailUserPermissionsErrors ( $user, $editToken, &$hookErr)
 Use this hook to retrieve permissions errors for emailing a user.
 

Detailed Description

Stable to implement.

Definition at line 11 of file EmailUserPermissionsErrorsHook.php.

Member Function Documentation

◆ onEmailUserPermissionsErrors()

MediaWiki\Hook\EmailUserPermissionsErrorsHook::onEmailUserPermissionsErrors (   $user,
  $editToken,
$hookErr 
)

Use this hook to retrieve permissions errors for emailing a user.

Since
1.35
Parameters
User$userThe user who is trying to email another user.
string$editTokenThe user's edit token.
bool | string | array&$hookErrOut-param for the error. Passed as the parameters to OutputPage::showErrorPage.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: