Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2010-07-01 15:02:03 +0400
committermattpiwik <matthieu.aubry@gmail.com>2010-07-01 15:02:03 +0400
commit911b6fe65a60ae79955e64d377bec25dc07d1939 (patch)
treef37f6240793ff2a810e2844f5a27c4e9ed5b10b3 /plugins/ExampleUI/ExampleUI.php
parentc4f2f3035d593ef440aea604001ecedd8d835e3f (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.php5
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++);
}
}
}