You are here

function lingotek_admin_field_settings_form_submit in Lingotek Translation 7.7

1 string reference to 'lingotek_admin_field_settings_form_submit'
lingotek_admin_field_settings_form in ./lingotek.admin.inc
Field Types and Settings Form

File

./lingotek.admin.inc, line 2361

Code

function lingotek_admin_field_settings_form_submit($form, &$form_state) {

  // Set the translatable field types and column defaults.
  $fields = array();
  $columns = array();
  foreach ($form_state['values'] as $type_name => $val) {
    if ($val !== 1) {
      continue;
    }
    list($type, $name) = explode('__', $type_name, 2);
    if ($type == 'fld') {
      $fields[] = $name;
    }
    elseif ($type == 'col') {
      $columns[] = $name;
    }
  }
  variable_set('lingotek_translatable_field_types', $fields);
  variable_set('lingotek_translatable_column_defaults', $columns);
}