summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-17 22:19:46 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-17 22:19:46 -0800
commitdbb9b8b1c8ee5395a65b6329c793e7a2c398ef00 (patch)
tree7e37f4a2482465d45c351787b8e524a5aef61c71 /modules/gallery/helpers/gallery_event.php
parente60edcdeba577e8cdbdbbc700cb3dfe9d0dd9443 (diff)
Sort the Admin > Settings menu instead of relying on module activation order.
Requires making Menu::get() return a reference. Fixes #1545.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index b59bb9b9..cbb939bb 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -371,6 +371,9 @@ class gallery_event_Core {
->id("admin_menu")
->label(t("Admin")));
module::event("admin_menu", $admin_menu, $theme);
+
+ $settings_menu = $admin_menu->get("settings_menu");
+ sort($settings_menu->elements);
}
}
}