Extension:Translate/Hooks/TranslateGetAPIMessageGroupsPropertyDescs

From mediawiki.org
Jump to navigation Jump to search
TranslateGetAPIMessageGroupsPropertyDescs
Available from version ???
Allows extra properties to be added to captured by action=query&meta=messagegroups&mgprop=foo
Define function:
public static function onTranslateGetAPIMessageGroupsPropertyDescs( &$properties ) { ... }
Attach hook:
$wgHooks['TranslateGetAPIMessageGroupsPropertyDescs'][] = 'MyExtensionHooks::onTranslateGetAPIMessageGroupsPropertyDescs';
Called from:File(s): Translate / api/ApiQueryMessageGroups.php
Function(s): getPropertyList

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

Details[edit]

  • array &$properties: An associative array of properties, name => description (which is ignored).