You are here

function i18n_menu_edit_item_form_submit in Internationalization 5

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

Process menu and menu item add/edit form submissions.

File

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

Code

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