Manual:Hooks/SkinTemplateContentActions
From MediaWiki.org
| SkinTemplateContentActions | |
|---|---|
| Available from version 1.5.0 |
|
*Define function: |
function fnMyHook( &$content_actions ) { ... }
|
*Attach hook: |
$wgHooks['SkinTemplateContentActions'][] = 'fnMyHook'; |
| Called from: | SkinTemplate.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SkinTemplateContentActions extensions.
[edit] Details
Called after building the $content_action array right before returning it, see content_action.php in the extension module for a demonstration of how to use this hook.
- Tip: Always return true, otherwise other extensions that have hooked this event will not function properly!
[edit] Arguments
- $content_actions: The array of content actions