Commit bbc65c30 authored by Dries's avatar Dries

- Patch #220004 by webernet et al: menu items reorder after edit one of menu item.

parent c83d65a7
......@@ -318,6 +318,7 @@ function menu_edit_item(&$form_state, $type, $item, $menu) {
$form['menu']['weight'] = array(
'#type' => 'weight',
'#title' => t('Weight'),
'#delta' => 50,
'#default_value' => $item['weight'],
'#description' => t('Optional. In the menu, the heavier items will sink and the lighter items will be positioned nearer the top.'),
);
......
......@@ -406,6 +406,7 @@ function menu_form_alter(&$form, $form_state, $form_id) {
$form['menu']['weight'] = array(
'#type' => 'weight',
'#title' => t('Weight'),
'#delta' => 50,
'#default_value' => $item['weight'],
'#description' => t('Optional. In the menu, the heavier items will sink and the lighter items will be positioned nearer the top.'),
);
......
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