Manual:Hooks/UserGetLanguageObject

From MediaWiki.org
Jump to: navigation, search
UserGetLanguageObject
Available from version 1.18.0 (r83405)
Called when getting user's interface language object.

Define function:
public static function onUserGetLanguageObject( $user, &$code ) { ... }

Attach hook:
$wgHooks['UserGetLanguageObject'][] = 'MyExtensionHooks::onUserGetLanguageObject';
Called from: RequestContext.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserGetLanguageObject extensions.


[edit] Details

  • $user: User object
  • &$code: Langauge code that will be used to create the object
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox