function menu_position_edit_item_submit in Menu Position 7
Same name and namespace in other branches
- 6 menu_position.admin.inc \menu_position_edit_item_submit()
- 7.2 menu_position.admin.inc \menu_position_edit_item_submit()
Process menu and menu item add/edit form submissions for menu_position links.
1 string reference to 'menu_position_edit_item_submit'
- _menu_position_form_menu_edit_item_alter in ./
menu_position.admin.inc - Implements hook_form_menu_edit_item_alter().
File
- ./
menu_position.admin.inc, line 140 - Provides infrequently used functions and hooks for menu_position.
Code
function menu_position_edit_item_submit($form, &$form_state) {
// Redirect to the menu edit form and display a message.
list($menu_name, ) = explode(':', $form['parent']['#default_value']);
$form_state['redirect'] = 'admin/structure/menu/manage/' . $menu_name;
drupal_set_message(t('Your configuration was not saved.'), 'error');
}