Manual:Hooks/UserLoadDefaults
From MediaWiki.org
UserLoadDefaults | |
---|---|
Available from version 1.13.0 Called when loading a default user |
|
Define function: |
public static function onUserLoadDefaults( $user, $name ) { ... } |
Attach hook: |
$wgHooks['UserLoadDefaults'][] = 'MyExtensionHooks::onUserLoadDefaults'; |
Called from: | User.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserLoadDefaults extensions.
[edit] Details
user: user objectname: user name