Skip to content
Snippets Groups Projects
Commit bbc65c30 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent c83d65a7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.'),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment