[See http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/examples/Content_action.php
for an example]
-'SkinTemplateNavigation': Alter the structured navigation links in SkinTemplates
+Alter the structured navigation links in SkinTemplates, there are three of these hooks called in different spots.
+'SkinTemplateNavigation': Called on content pages before variants have been added
+'SkinTemplateNavigation::SpecialPage': Called on special pages before variands have been added
+'SkinTemplateNavigation::Universal': Called on both content and special pages after variants have been added
&$sktemplate: SkinTemplate object
&$links: Structured navigation links
This is used to alter the navigation for skins which use buildNavigationUrls such as Vector.
'text' => wfMsg( 'nstab-special' ),
'href' => $wgRequest->getRequestURL()
);
+ // Equiv to SkinTemplateBuildContentActionUrlsAfterSpecialPage
+ wfRunHooks( 'SkinTemplateNavigation::SpecialPage', array( &$this, &$links ) );
}
// Gets list of language variants
}
}
+ // Equiv to SkinTemplateContentActions
+ wfRunHooks( 'SkinTemplateNavigation::Universal', array( &$this, &$links ) );
+
wfProfileOut( __METHOD__ );
return $links;