From mediawiki.org
Jump to navigation Jump to search
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.


  • 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