diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-04 17:36:37 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-04 17:36:37 -0700 |
commit | 8d9010cfe381ddff870c29dd67b687905595ce1f (patch) | |
tree | 55c84330491129e73a8d12008877fb5d4a2a2e3b /modules/akismet/helpers | |
parent | 743b321154b326094cc5fb805268c83906c246bd (diff) |
Let the Akismet module create the statistics menu, since it's the only
one that uses it. Perhaps this is not the best solution, but it's the
pragmatic one.
Diffstat (limited to 'modules/akismet/helpers')
-rw-r--r-- | modules/akismet/helpers/akismet_menu.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/akismet/helpers/akismet_menu.php b/modules/akismet/helpers/akismet_menu.php index ebd948d6..2862fd40 100644 --- a/modules/akismet/helpers/akismet_menu.php +++ b/modules/akismet/helpers/akismet_menu.php @@ -26,6 +26,12 @@ class akismet_menu_Core { ->url(url::site("admin/akismet"))); if (module::get_var("akismet", "api_key")) { + if (!$statistics_menu = $menu->get("statistics_menu")) { + $menu->append(Menu::factory("submenu") + ->id("statistics_menu") + ->label(t("Statistics"))); + } + $menu->get("statistics_menu") ->append(Menu::factory("link") ->id("akismet") |