Manual:Hooks/SkinTemplatePreventOtherActiveTabs

From MediaWiki.org
Jump to: navigation, search
SkinTemplatePreventOtherActiveTabs
Available from version 1.6.0 (r12059)
Called before adding the tabs above the articles

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

*Attach hook:
$wgHooks['SkinTemplatePreventOtherActiveTabs'][] = 'MyExtensionHooks::someExample';
Called from: SkinTemplate.php

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


[edit] Details

  • $skin: SkinTemplate object
  • $prevent_active_tabs: Set to false to disable various tabs at the top of the article. This only disables the Talk page link (v1.9.3).
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox