Manual:Hooks/SkinBuildSidebar

Details
Modify $bar to add or modify sidebar portlets.
 * $skin: Skin object
 * &$bar: Sidebar contents

Simple Example
In YourExtension.php add:

In YourExtension.body.php or YourExtension.hooks.php add: