< Extension:Translate < Hooks 
 
      | TranslateProcessAPIMessageGroupsProperties | |
|---|---|
| Available from version ??? (Gerrit change 19457) Allows exrra property requests to be acted upon, and the new new properties returned | |
| Define function: | public static function onTranslateProcessAPIMessageGroupsProperties( &$a, $props, $params, $g ) { ... }
 | 
| Attach hook: | $wgHooks['TranslateProcessAPIMessageGroupsProperties'][] = 'MyExtensionHooks::onTranslateProcessAPIMessageGroupsProperties';
 | 
| Called from: | File(s): Translate / api/ApiQueryMessageGroups.php Function(s): formatGroup | 
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:TranslateProcessAPIMessageGroupsProperties extensions.
Details
- array &$a: Associative array of the properties of $group that will be returned
- array $props: Associative array ($name => true) of properties the user has specifically requested
- array $params: Parameter input by the user (unprefixed name => value)
- MessageGroup $g: The group in question
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.