Manual:Hooks/APIAfterExecute

From MediaWiki.org

Jump to: navigation, search
APIAfterExecute
Available from version 1.14.0
Use this hook to extend core API modules

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

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

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


[edit] Details

  • $module: Module object

[edit] Notes

Called after calling the execute() method of an API module.

Use this to extend core API modules.