Manual:Hooks/SkinSubPageSubtitle

From MediaWiki.org
Jump to: navigation, search
SkinSubPageSubtitle
Available from version 1.12.0
Called before building the list of subpage links above a subpage

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

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

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


[edit] Details

Called before building the list of subpage links above a subpage (like this page).

[edit] Arguments

  • &$subpages: Put the subpage links HTML in this variable
  • $skin: Skin object (since 1.17.0)

[edit] Return value

Return false if you want the content of $subpages to be displayed (this will override Skin::subPageSubtitle()'s functionality), return true if you want the default set of links to be generated (unless, of course, another hook overrides).

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox