Extension:Translate/Hooks/TranslateGetAPIMessageGroupsParameterList

TranslateGetAPIMessageGroupsParameterList
Available from versionĀ ???
Allows extra parameters to be added to the action=query&meta=messagegroups module
Define function:
public static function onTranslateGetAPIMessageGroupsParameterList( &$params ) { ... }
Attach hook:
$wgHooks['TranslateGetAPIMessageGroupsParameterList'][] = 'MyExtensionHooks::onTranslateGetAPIMessageGroupsParameterList';
Called from:File(s): Translate / api/ApiQueryMessageGroups.php
Function(s): getAllowedParams

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

DetailsEdit

  • array &$params: An associative array of possible parameters (name => details; see ApiQueryMessageGroups.php for correct spacing)