Manual:Hooks/BaseTemplateToolbox
From MediaWiki.org
| BaseTemplateToolbox | |
|---|---|
| Available from version 1.18.0 (r77893) Called by BaseTemplate when building the toolbox array and returning it for the skin to output. |
|
Define function: |
public static function onBaseTemplateToolbox( $sk, &$toolbox ) { ... }
|
Attach hook: |
$wgHooks['BaseTemplateToolbox'][] = 'MyExtensionHooks::onBaseTemplateToolbox'; |
| Called from: | SkinTemplate.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BaseTemplateToolbox extensions.
Details [edit]
You can add items to the toolbox while still letting the skin make final decisions on skin-specific markup conventions using this hook.
- &$sk: The BaseTemplate base skin template
- &$toolbox: An array of toolbox items, see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array
| Language: | English • Deutsch • Bahasa Indonesia • 日本語 |
|---|