You are here

function menu_translation_table_menu_form_submit in Translation table 6

Same name and namespace in other branches
  1. 7 modules/menu.translation_table.inc \menu_translation_table_menu_form_submit()

Submit handler for the menu translation form.

1 string reference to 'menu_translation_table_menu_form_submit'
menu_translation_table_menu_form in modules/menu.translation_table.inc
Menu callback; Admin form for menu translation.

File

modules/menu.translation_table.inc, line 103
Translation table for the menu module.

Code

function menu_translation_table_menu_form_submit($form, &$form_state) {
  switch ($form_state['clicked_button']['#id']) {
    case 'edit-filter':
    case 'edit-submit':
      $_SESSION['translation_table']['languages_selected'] = array_intersect_key(locale_language_list('name', TRUE), $form_state['values']['languages_selected']);
      break;
  }
}