summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--context_ui/context_ui.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/context_ui/context_ui.module b/context_ui/context_ui.module
index a1020ea..0a590bd 100644
--- a/context_ui/context_ui.module
+++ b/context_ui/context_ui.module
@@ -59,7 +59,7 @@ function context_ui_context_items() {
global $_menu;
$menus = array();
// build options using root menus
- foreach (menu_get_root_menus() as $root_mid => $root_menu) {
+ foreach (array_reverse(menu_get_root_menus(), true) as $root_mid => $root_menu) {
// build menu options from children of each root menu
$menu = array();
$options = menu_parent_options(0, $root_mid, 0);
@@ -69,7 +69,7 @@ function context_ui_context_items() {
$menu[$path] = $title;
}
$path = $_menu['items'][$root_mid]['path'];
- $menus[$path] = $root_menu;
+ $menus[$root_mid] = "<strong>". $root_menu ."</strong>";
$menus = $menus + $menu;
}
$items['menu'] = array(
@@ -390,8 +390,8 @@ function context_ui_form($op, $cid = NULL) {
);
// Generate settings for context item associations
- foreach (context_ui_types('full') as $type => $item) {
- $form['items'][$type] = array(
+ foreach (context_ui_types('full') as $type => $item) {
+ $form['items'][$type] = array(
'#title' => $item['title'],
'#description' => $item['description'],
'#type' => 'checkboxes',
@@ -909,4 +909,4 @@ function context_ui_block_list($region) {
function _context_ui_block_compare($a, $b) {
// Enabled blocks
return ($a->weight - $b->weight);
-} \ No newline at end of file
+}