Manual:Hooks/SkinTemplateTabAction
From MediaWiki.org
| SkinTemplateTabAction | |
|---|---|
| Available from version 1.12.0 Override SkinTemplate::tabAction(). |
|
*Define function: |
function fnMyHook( &$sktemplate, $title, $message, $selected, $checkEdit, |
*Attach hook: |
$wgHooks['SkinTemplateTabAction'][] = 'fnMyHook'; |
| Called from: | SkinTemplate.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SkinTemplateTabAction extensions.
[edit] Details
You can either create your own array, or alter the parameters for the normal one.
- &$sktemplate: The SkinTemplate instance.
- $title: Title instance for the page.
- $message: Visible label of tab.
- $selected: Whether this is a selected tab.
- $checkEdit: Whether or not the action=edit query should be added if appropriate.
- &$classes: Array of CSS classes to apply.
- &$query: Query string to add to link.
- &$text: Link text.
- &$result: Complete assoc. array if you want to return true.