You are here

function lingotek_is_config_missing in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_is_config_missing()
  2. 7.3 lingotek.module \lingotek_is_config_missing()
  3. 7.4 lingotek.module \lingotek_is_config_missing()
  4. 7.5 lingotek.module \lingotek_is_config_missing()
  5. 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 1071

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
}