Manual:Hooks/LoadUserOptions/cs
Appearance
LoadUserOptions | |
---|---|
Available from version 1.37.0 Tento háček je volán, když se uživatelské možnosti/preference načítají z databáze | |
Define function: | public static function onLoadUserOptions( UserIdentity $user, array &$options ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"LoadUserOptions": "MediaWiki\\Extension\\MyExtension\\Hooks::onLoadUserOptions"
}
}
|
Called from: | File(s): user/UserOptionsManager.php |
Interface: | LoadUserOptionsHook.php |
For more information about attaching hooks, see Příručka:Háčky .
For examples of extensions using this hook, see Category:LoadUserOptions extensions/cs.