function lingotek_verify_modules_enabled in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.admin.inc \lingotek_verify_modules_enabled()
- 7.3 lingotek.admin.inc \lingotek_verify_modules_enabled()
- 7.4 lingotek.admin.inc \lingotek_verify_modules_enabled()
- 7.6 lingotek.admin.inc \lingotek_verify_modules_enabled()
1 call to lingotek_verify_modules_enabled()
File
- ./
lingotek.admin.inc, line 656
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;
}