< Manual:Hooks
![]() | This feature was removed from MediaWiki core in version 1.37.0 (after being deprecated in 1.35.0). Please see SkinTemplateNavigation::Universal for an alternative way to use this feature. |
SkinTemplatePreventOtherActiveTabs | |
---|---|
Available from version 1.6.0 (r12059, codereview) Removed in version 1.37.0 Called before adding the tabs above the articles | |
Define function: | public static function onSkinTemplatePreventOtherActiveTabs( &$skin, &$prevent_active_tabs ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SkinTemplatePreventOtherActiveTabs": "MyExtensionHooks::onSkinTemplatePreventOtherActiveTabs"
}
}
|
Called from: | File(s): skins/SkinTemplate.php |
Interface: | SkinTemplatePreventOtherActiveTabsHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:SkinTemplatePreventOtherActiveTabs extensions.
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).
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.