Manual:Hooks/SkinTemplateTabs

From MediaWiki.org

Jump to: navigation, search
SkinTemplateTabs
Available from version 1.6.0


*Define function:
function fnMyHook( $skin,&$content_actions ) { ... }

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

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


[edit] Details

Called after building the $content_actions array, but before returning it. The $content_actions array can be modified to add/remove tabs.

  • Tip: Always return true, otherwise other extensions that have hooked this event will not function properly!

[edit] Arguments

  • $skin: the skin it was called from
  • $content_actions: The array of content actions