You are here

function lingotek_setup in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.setup.inc \lingotek_setup()
  2. 7.2 lingotek.setup.inc \lingotek_setup()
  3. 7.3 lingotek.setup.inc \lingotek_setup()
  4. 7.5 lingotek.setup.inc \lingotek_setup()
  5. 7.6 lingotek.setup.inc \lingotek_setup()

Routing: Returning User, New Account or Already Setup

1 string reference to 'lingotek_setup'
lingotek_menu in ./lingotek.module
Implements hook_menu().

File

./lingotek.setup.inc, line 12

Code

function lingotek_setup() {

  // Does the install already have connection credentials?
  if (lingotek_is_config_missing()) {
    drupal_goto('admin/config/lingotek/new-account');

    // If something is missing - Go though the Setup Process
  }
  else {
    drupal_goto('admin/settings/lingotek/settings');

    // We already have credentials, goto the Dashboard
  }
}