You are here

function lingotek_verify_modules_enabled in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.3 lingotek.admin.inc \lingotek_verify_modules_enabled()
  2. 7.4 lingotek.admin.inc \lingotek_verify_modules_enabled()
  3. 7.5 lingotek.admin.inc \lingotek_verify_modules_enabled()
  4. 7.6 lingotek.admin.inc \lingotek_verify_modules_enabled()
1 call to lingotek_verify_modules_enabled()
lingotek_admin_additional_translation_settings_form_validate in ./lingotek.admin.inc

File

./lingotek.admin.inc, line 961

Code

function lingotek_verify_modules_enabled($module_list) {
  $missing_modules = FALSE;
  foreach ($module_list as $mod) {
    if (!module_exists($mod)) {
      form_set_error(t('missing:@mod', array(
        '@mod' => $mod,
      )), t('Module \'@mod\' must first be enabled.', array(
        '@mod' => $mod,
      )));
      $missing_modules = TRUE;
    }
  }
  if ($missing_modules) {
    return FALSE;
  }
  return TRUE;
}