Manual:Hooks/AbortNewAccount
From MediaWiki.org
| AbortNewAccount | |
|---|---|
| Available from version 1.5.8 Can be used to cancel user account creation |
|
*Define function: |
function fnMyHook( $user, $message ) { ... }
|
*Attach hook: |
$wgHooks['AbortNewAccount'][] = 'fnMyHook'; |
| Called from: | SpecialUserlogin.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:AbortNewAccount extensions.
[edit] Details
- $user: the User object about to be created (read-only, incomplete)
- $message: out parameter: error message to display on abort
[edit] Notes
- Return false to cancel account creation.