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

- Patch #609108 by sivaji: menu admin page should say something when you save.

parent 60515aa7
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
......@@ -181,6 +181,7 @@ function menu_overview_form_submit($form, &$form_state) {
$item['customized'] = 1;
menu_link_save($item);
}
drupal_set_message(t('Your configuration has been saved.'));
}
/**
......@@ -403,6 +404,9 @@ function menu_edit_item_submit($form, &$form_state) {
if (!menu_link_save($item)) {
drupal_set_message(t('There was an error saving the menu link.'), 'error');
}
else {
drupal_set_message(t('Your configuration has been saved.'));
}
$form_state['redirect'] = 'admin/structure/menu/manage/' . $item['menu_name'];
}
......@@ -605,6 +609,7 @@ function menu_edit_menu_submit($form, &$form_state) {
menu_link_save($link);
}
}
drupal_set_message(t('Your configuration has been saved.'));
$form_state['redirect'] = $path . $menu['menu_name'];
}
......
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