MediaWiki master
MediaWiki\Specials\Hook\UserCanChangeEmailHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onUserCanChangeEmail ( $user, $oldaddr, $newaddr, &$status)
 This hook is called when user changes their email address.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserCanChangeEmail" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file UserCanChangeEmailHook.php.

Member Function Documentation

◆ onUserCanChangeEmail()

MediaWiki\Specials\Hook\UserCanChangeEmailHook::onUserCanChangeEmail ( $user,
$oldaddr,
$newaddr,
& $status )

This hook is called when user changes their email address.

Since
1.45
Parameters
User$userUser (object) changing his email address
string$oldaddrold email address (string)
string$newaddrnew email address (string)
Status&$statusSet this and return false to override the internal checks
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: