Manual:Hooks/SidebarBeforeOutput

Details

 * $skin: Skin object
 * &$bar: Sidebar contents

Modify $bar to add or modify sidebar portlets.

Warning: You should probably use SkinBuildSidebar in order to use the caching system. This hook is run on each display and should be used if the contents of the sidebar vary on a per-request basis (e.g. Extension:DynamicSidebar).