Manual:Hooks/PrefsEmailAudit
From MediaWiki.org
| PrefsEmailAudit | |
|---|---|
| Available from version 1.11.0 called when user changes his email address |
|
*Define function: |
function fnMyHook( $user, $oldaddr, $newaddr ) { ... }
|
*Attach hook: |
$wgHooks['PrefsEmailAudit'][] = 'fnMyHook'; |
| Called from: | SpecialPreferences.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:PrefsEmailAudit extensions.
[edit] Details
- $user: User (object) changing his email address
- $oldaddr: old email address (string)
- $newaddr: new email address (string)