Jump to content

Extension:Translate/Hooks/TranslateGetAPIMessageGroupsPropertyDescs

From mediawiki.org
TranslateGetAPIMessageGroupsPropertyDescs
Available from version ???
Removed in version 2025.01
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).