Extension:Translate/Hooks/TranslateProcessAPIMessageGroupsProperties

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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