diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2016-04-04 03:10:40 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2016-04-06 13:17:27 +0300 |
commit | 3a6d626c2474b83ea5c4125fd33dfe12b9e0bf8a (patch) | |
tree | 9de2cd1d85e1f8a7211f0514f8deae2b152faa89 /plugins/ExamplePlugin | |
parent | 780c09b144e048cc748429bc06d016354d44746e (diff) |
refs #9354 merge user and admin menu to one single menu
Diffstat (limited to 'plugins/ExamplePlugin')
-rw-r--r-- | plugins/ExamplePlugin/Menu.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/plugins/ExamplePlugin/Menu.php b/plugins/ExamplePlugin/Menu.php index 7c9acb90f6..38ac0d4af8 100644 --- a/plugins/ExamplePlugin/Menu.php +++ b/plugins/ExamplePlugin/Menu.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\ExamplePlugin; use Piwik\Menu\MenuAdmin; use Piwik\Menu\MenuTop; -use Piwik\Menu\MenuUser; /** * This class allows you to add, remove or rename menu items. @@ -20,22 +19,12 @@ use Piwik\Menu\MenuUser; class Menu extends \Piwik\Plugin\Menu { - public function configureAdminMenu(MenuAdmin $menu) - { - // reuse an existing category - // $menu->addSettingsItem('My Admin Item', $this->urlForDefaultAction(), $orderId = 30); - // $menu->addPlatformItem('My Admin Item', $this->urlForDefaultAction(), $orderId = 30); - - // or create a custom category - // $menu->addItem('General_Settings', 'My Admin Item', $this->urlForDefaultAction(), $orderId = 30); - } - public function configureTopMenu(MenuTop $menu) { // $menu->addItem('My Top Item', null, $this->urlForDefaultAction(), $orderId = 30); } - public function configureUserMenu(MenuUser $menu) + public function configureAdminMenu(MenuAdmin $menu) { // reuse an existing category. Execute the showList() method within the controller when menu item was clicked // $menu->addManageItem('My User Item', $this->urlForAction('showList'), $orderId = 30); |