function lingotek_is_config_missing in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lingotek.module \lingotek_is_config_missing()
- 7.2 lingotek.module \lingotek_is_config_missing()
- 7.4 lingotek.module \lingotek_is_config_missing()
- 7.5 lingotek.module \lingotek_is_config_missing()
- 7.6 lingotek.module \lingotek_is_config_missing()
Checks any required configuration parameters are missing. (more detailed check than lingotek_is_module_setup())
1 call to lingotek_is_config_missing()
- lingotek_dashboard in ./
lingotek.dashboard.inc - Tab: Dashboard - The main Lingotek dashboard page.
File
- ./
lingotek.module, line 1097
Code
function lingotek_is_config_missing() {
$required_variables = array(
'lingotek_community_identifier',
'lingotek_oauth_consumer_id',
'lingotek_oauth_consumer_secret',
'lingotek_login_id',
'lingotek_project',
);
foreach ($required_variables as $required_variable) {
$val = variable_get($required_variable, NULL);
if (empty($val)) {
return TRUE;
}
}
return FALSE;
// all required configuration variables are set
}