You are here

function lingotek_setup_check_credentials in Lingotek Translation 7.3

5 calls to lingotek_setup_check_credentials()
lingotek_admin_additional_translation_settings_form in ./lingotek.admin.inc
Additional translation form
lingotek_admin_node_translation_settings_form in ./lingotek.admin.inc
Entity translation form
lingotek_admin_node_translation_settings_form_submit in ./lingotek.admin.inc
Node Translation Settings - Form Submit
lingotek_is_module_setup in ./lingotek.module
Checks to make sure the Lingotek Translation module setup completed successfully. If its not, the user is directed to the setup wizard.
lingotek_setup in ./lingotek.setup.inc
Routing: Returning User, New Account or Already Setup

File

./lingotek.util.inc, line 320
Utility functions.

Code

function lingotek_setup_check_credentials() {
  $current_community_identifier = variable_get('lingotek_community_identifier', '');
  $current_oauth_consumer_id = variable_get('lingotek_oauth_consumer_id', '');
  $current_oauth_consumer_secret = variable_get('lingotek_oauth_consumer_secret', '');
  $current_login_id = variable_get('lingotek_login_id', '');
  $current_project = variable_get('lingotek_project', '');
  $current_vault = variable_get('lingotek_vault', '');
  $current_workflow = variable_get('lingotek_workflow', '');
  $translate_config = variable_get('lingotek_translate_config', '');
  $translate_comments = variable_get('lingotek_translate_comments', '');

  // Does the install already have connection credentials?
  if ($current_community_identifier == '' || $current_oauth_consumer_id == '' || $current_oauth_consumer_secret == '' || $current_login_id == '' || $current_project == '' || $current_vault == '' || $current_workflow == '' || $translate_config === '' || $translate_comments === '') {
    return FALSE;
  }
  return TRUE;
}