You are here

function i18n_menu_edit_item_form_submit in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_menu_edit_item_form_submit()
  2. 5 i18n.module \i18n_menu_edit_item_form_submit()
  3. 5.2 i18n.module \i18n_menu_edit_item_form_submit()

Process menu and menu item add/edit form submissions.

File

./i18n.module, line 655
Internationalization (i18n) module.

Code

function i18n_menu_edit_item_form_submit($form, &$form_state) {
  $mid = menu_edit_item_save($form_state['values']);
  db_query("UPDATE {menu} SET language = '%s' WHERE mid = %d", $form_state['values']['language'], $mid);
  return 'admin/build/menu';
}