Manual:Hooks/UserLoadOptions
From MediaWiki.org
Warning - v1.16.0 has not been released yet. This feature may be modified or removed before final release.
| UserLoadOptions | |
|---|---|
| Available from version 1.16.0 When user options/preferences are being loaded from the database. |
|
*Define function: |
function fnMyHook( $user, &$options ) { ... }
|
*Attach hook: |
$wgHooks['UserLoadOptions'][] = 'fnMyHook'; |
| Called from: | User.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserLoadOptions extensions.
[edit] Details
- $user: User object
- &$options: Options, can be modified.