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);
$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(
);
// 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',
function _context_ui_block_compare($a, $b) {
// Enabled blocks
return ($a->weight - $b->weight);
-}
\ No newline at end of file
+}