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