Manual:Hooks/SkinBuildSidebar
From MediaWiki.org
| SkinBuildSidebar | |
|---|---|
| Available from version 1.14.0 At the end of Skin::buildSidebar(). |
|
*Define function: |
function fnMyHook( $skin, &$bar ) { ... }
|
*Attach hook: |
$wgHooks['SkinBuildSidebar'][] = 'fnMyHook'; |
| Called from: | Skin.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SkinBuildSidebar extensions.
[edit] Details
- $skin: Skin object
- &$bar: Sidebar contents
Modify $bar to add or modify sidebar portlets.