Jump to content

Extension:Translate/Hooks/TranslateGetAPIMessageGroupsParameterList

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

Details

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