You are here

function field_translation_table_form_submit in Translation table 7

Submit handler for the field translation form.

1 string reference to 'field_translation_table_form_submit'
field_translation_table_form in modules/field.translation_table.inc
Menu callback; Admin form for field translation.

File

modules/field.translation_table.inc, line 140
Translation table for fields

Code

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