Manual:Hooks/SkinTemplateContentActions
Appearance
This feature was removed completely in version 1.18.0. |
SkinTemplateContentActions | |
---|---|
Available from version 1.5.0 (r10411, CodeReview archive) Removed in version 1.18.0 | |
Define function: | public static function onSkinTemplateContentActions( &$content_actions ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SkinTemplateContentActions": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinTemplateContentActions"
}
}
|
Called from: | File(s): SkinTemplate.php |
Interface: | SkinTemplateContentActionsHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SkinTemplateContentActions extensions.
Note: MediaWiki 1.18 now uses the Vector-style hook for all skins, please see Manual:Hooks/SkinTemplateNavigation::Universal for the Vector and 1.18 equivalent of this hook.
Details
[edit]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!
Arguments
[edit]$content_actions
: The array of content actions