Available from version 1.25.0 (Gerrit change 160798)
Allows to modify a module's parameter descriptions
Define function:
public static function onAPIGetParamDescriptionMessages( ApiBase $module, array &$messages ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"APIGetParamDescriptionMessages": "MyExtensionHooks::onAPIGetParamDescriptionMessages"
Called from: File(s): api/ApiBase.php
Function(s): getFinalParamDescription
Interface: APIGetParamDescriptionMessagesHook.php

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


  • $module - ApiBase object
  • &$messages - Array of Message objects