Commit be324d8f authored by Gábor Hojtsy's avatar Gábor Hojtsy

#195091 by Rowanw: (usability) swap enabled and expanded checkbox in menu...

#195091 by Rowanw: (usability) swap enabled and expanded checkbox in menu admin and allow setting elements without children to be expanded
parent ab036224
......@@ -76,7 +76,7 @@ function _menu_overview_tree_form($tree) {
);
$form[$mlid]['expanded'] = array(
'#type' => 'checkbox',
'#default_value' => $item['has_children'] && $item['expanded'],
'#default_value' => $item['expanded'],
);
$form[$mlid]['weight'] = array(
'#type' => 'weight',
......@@ -172,8 +172,8 @@ function theme_menu_overview_form($form) {
$header = array(
t('Menu item'),
array('data' => t('Expanded'), 'class' => 'checkbox'),
array('data' => t('Enabled'), 'class' => 'checkbox'),
array('data' => t('Expanded'), 'class' => 'checkbox'),
t('Weight'),
array('data' => t('Operations'), 'colspan' => '3'),
);
......@@ -201,8 +201,8 @@ function theme_menu_overview_form($form) {
$row = array();
$row[] = theme('indentation', $element['#item']['depth'] - 1) . drupal_render($element['title']);
$row[] = array('data' => drupal_render($element['expanded']), 'class' => 'checkbox');
$row[] = array('data' => drupal_render($element['hidden']), 'class' => 'checkbox');
$row[] = array('data' => drupal_render($element['expanded']), 'class' => 'checkbox');
$row[] = drupal_render($element['weight']) . drupal_render($element['plid']) . drupal_render($element['mlid']);
$row = array_merge($row, $operations);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment