You are here

function field_translation_table_form in Translation table 7

Menu callback; Admin form for field translation.

1 string reference to 'field_translation_table_form'
field_translation_table_data in modules/field.translation_table.inc
Implements hook_translation_table_data().

File

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

Code

function field_translation_table_form($form, &$form_state) {
  $languages_selected = isset($_SESSION['translation_table']['languages_selected']) ? $_SESSION['translation_table']['languages_selected'] : locale_language_list('name', FALSE);
  $bundle = isset($_SESSION['translation_table']['bundle']) ? $_SESSION['translation_table']['bundle'] : 0;
  $form['filter'] = field_translation_table_filter($languages_selected, $bundle);
  $form['filtered_form'] = field_translation_table_filtered_form($languages_selected, $bundle);
  $form['#submit'][] = 'field_translation_table_form_submit';
  $form['#submit'][] = 'translation_table_submit_translations';
  return $form;
}