You are here

function lingotek_admin_additional_translation_settings_form_validate in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.3 lingotek.admin.inc \lingotek_admin_additional_translation_settings_form_validate()
  2. 7.5 lingotek.admin.inc \lingotek_admin_additional_translation_settings_form_validate()
  3. 7.6 lingotek.admin.inc \lingotek_admin_additional_translation_settings_form_validate()
1 string reference to 'lingotek_admin_additional_translation_settings_form_validate'
lingotek_admin_additional_translation_settings_form in ./lingotek.admin.inc
Additional translation form

File

./lingotek.admin.inc, line 976

Code

function lingotek_admin_additional_translation_settings_form_validate($form, &$form_state) {

  // check for required modules if config translation is enabled
  $conf_opt_part = $form['additional_translation']['config'];
  if (isset($conf_opt_part['lingotek_translate_config_views']['#value']) && $conf_opt_part['lingotek_translate_config_views']['#value'] !== 0) {
    lingotek_verify_modules_enabled(array(
      'i18nviews',
    ));
  }
}