Manual:Hooks/isValidEmailAddr
From MediaWiki.org
| isValidEmailAddr | |
|---|---|
| Available from version 1.12.0 Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn't match your organization |
|
*Define function: |
function fnMyHook( $addr, &$result ) { ... }
|
*Attach hook: |
$wgHooks['isValidEmailAddr'][] = 'MyExtensionHooks::someExample'; |
| Called from: | User.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:isValidEmailAddr extensions.
[edit] Details
- $addr: The e-mail address entered by the user
- &$result: Set this and return false to override the internal checks
