Manual:Hooks/APIGetAllowedParams
From MediaWiki.org
| APIGetAllowedParams | |
|---|---|
| Available from version 1.14.0 Use this hook to modify a module's parameters |
|
Define function: |
public static function onAPIGetAllowedParams( &$module, &$params ) { ... }
|
Attach hook: |
$wgHooks['APIGetAllowedParams'][] = 'MyExtensionHooks::onAPIGetAllowedParams'; |
| Called from: | ApiBase.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:APIGetAllowedParams extensions.
Details[edit]
- $module: Module object
- $params: Array of parameters
