'Example User Interface', 'description' => 'Example Plugin: This plugin shows how to work with the Piwik UI: create tables, graphs, etc.', 'author' => 'Piwik', 'author_homepage' => 'http://piwik.org/', 'version' => '0.1', ); } function getListHooksRegistered() { $hooks = array( 'Menu.add' => 'addMenus', ); return $hooks; } function addMenus() { $menus = array( 'Data tables' => 'dataTables', 'Evolution graph' => 'evolutionGraph', 'Bar graph' => 'barGraph', 'Pie graph' => 'pieGraph', 'Tag clouds' => 'tagClouds', 'Sparklines' => 'sparklines', 'Misc' => 'misc', ); foreach($menus as $subMenu => $action) { Piwik_AddMenu('UI Framework', $subMenu, array('module' => 'ExampleUI', 'action' => $action)); } } }