You are here

function lingotek_is_module_setup in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_is_module_setup()
  2. 7.3 lingotek.module \lingotek_is_module_setup()
  3. 7.4 lingotek.module \lingotek_is_module_setup()
  4. 7.5 lingotek.module \lingotek_is_module_setup()
  5. 7.6 lingotek.module \lingotek_is_module_setup()

Checks to make sure the Lingotek module setup completed successfully. If its not, the user is directed to the setup wizard.

2 calls to lingotek_is_module_setup()
lingotek_admin_form in ./lingotek.admin.inc
Form constructor for the administration form.
lingotek_dashboard in ./lingotek.dashboard.inc
Tab: Dashboard - The main Lingotek dashboard page.

File

./lingotek.module, line 1060

Code

function lingotek_is_module_setup() {
  $setup_complete = variable_get('lingotek_setup_complete', 0);
  if ($setup_complete != 1) {
    drupal_goto('admin/config/lingotek/new-account');

    // If something is missing - Go to the Setup Process
  }
}