Manual:Hooks/APIGetParamDescription

From MediaWiki.org

Jump to: navigation, search
APIGetParamDescription
Available from version 1.14.0
Use this hook to modify a module's parameter descriptions

*Define function:
function fnMyHook( &$module, &$desc ) { ... }

*Attach hook:
$wgHooks['APIGetParamDescription'][] = 'fnMyHook';
Called from: ApiBase.php

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


[edit] Details

  • $module: Module object
  • $desc: Array of parameter descriptions