diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-01 15:02:03 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-01 15:02:03 +0400 |
commit | 911b6fe65a60ae79955e64d377bec25dc07d1939 (patch) | |
tree | f37f6240793ff2a810e2844f5a27c4e9ed5b10b3 /plugins/ExampleUI/ExampleUI.php | |
parent | c4f2f3035d593ef440aea604001ecedd8d835e3f (diff) |
Fixes #1403 Patch by halfdan: great stuff! Menu code is now clean and refactored.
git-svn-id: http://dev.piwik.org/svn/trunk@2409 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/ExampleUI/ExampleUI.php')
-rw-r--r-- | plugins/ExampleUI/ExampleUI.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ExampleUI/ExampleUI.php b/plugins/ExampleUI/ExampleUI.php index 9f365fb367..93be866688 100644 --- a/plugins/ExampleUI/ExampleUI.php +++ b/plugins/ExampleUI/ExampleUI.php @@ -62,9 +62,12 @@ class Piwik_ExampleUI extends Piwik_Plugin 'Sparklines' => 'sparklines', 'Misc' => 'misc', ); + + Piwik_AddMenu('UI Framework', '', array('module' => 'ExampleUI', 'action' => 'dataTables'), true, 30); + $order = 1; foreach($menus as $subMenu => $action) { - Piwik_AddMenu('UI Framework', $subMenu, array('module' => 'ExampleUI', 'action' => $action)); + Piwik_AddMenu('UI Framework', $subMenu, array('module' => 'ExampleUI', 'action' => $action), true, $order++); } } } |