MediaWiki  master
MediaWiki\Hook\IsValidEmailAddrHook Interface Reference

Stable for implementation. More...

Inheritance diagram for MediaWiki\Hook\IsValidEmailAddrHook:

Public Member Functions

 onIsValidEmailAddr ( $addr, &$result)
 Use this hook to override the result of Sanitizer::validateEmail(), for instance to return false if the domain name doesn't match your organization. More...
 

Detailed Description

Stable for implementation.

Definition at line 9 of file IsValidEmailAddrHook.php.

Member Function Documentation

◆ onIsValidEmailAddr()

MediaWiki\Hook\IsValidEmailAddrHook::onIsValidEmailAddr (   $addr,
$result 
)

Use this hook to override the result of Sanitizer::validateEmail(), for instance to return false if the domain name doesn't match your organization.

Since
1.35
Parameters
string$addrEmail address entered by the user
bool | null&$resultSet 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: