You are here

function quicktabs_translation_table_quicktabs_form_submit in Translation table 6

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

Submit handler for the quicktabs translation form.

1 string reference to 'quicktabs_translation_table_quicktabs_form_submit'
quicktabs_translation_table_quicktabs_form in modules/quicktabs.translation_table.inc
Menu callback; Admin form for quicktabs translation.

File

modules/quicktabs.translation_table.inc, line 126
Translation table for the quicktabs module.

Code

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