diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-30 08:55:45 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-30 08:55:45 +0400 |
commit | 7adfa9baac7172965e18f6d61aaf8676e61676d2 (patch) | |
tree | cd411aa8beff602d5d07f4358e637b6a42321c6f /plugins/ExampleUI | |
parent | 0aa880e773aec77b1383f9df04cf40702a07919a (diff) |
Move UI Notifications example, from the Top Menu to the User Menu instead.
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r-- | plugins/ExampleUI/Menu.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/ExampleUI/Menu.php b/plugins/ExampleUI/Menu.php index dade4ad9a6..8714c3eddc 100644 --- a/plugins/ExampleUI/Menu.php +++ b/plugins/ExampleUI/Menu.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\ExampleUI; use Piwik\Menu\MenuReporting; use Piwik\Menu\MenuTop; +use Piwik\Menu\MenuUser; use Piwik\Plugin\Manager as PluginManager; /** @@ -32,12 +33,13 @@ class Menu extends \Piwik\Plugin\Menu } } - public function configureTopMenu(MenuTop $menu) + public function configureUserMenu(MenuUser $menu) { $urlParams = array('module' => 'ExampleUI', 'action' => 'notifications'); - $menu->add('UI Notifications', null, $urlParams, $displayedForCurrentUser = true, $order = 3); + $menu->add('CorePluginsAdmin_MenuPlatform', 'UI Notifications', $urlParams, $displayedForCurrentUser = true, $order = 3); } + private function addSubMenu(MenuReporting $menu, $subMenu, $action, $order) { $menu->add('UI Framework', $subMenu, array('module' => 'ExampleUI', 'action' => $action), true, $order); |