You are here

function lingotek_is_module_setup in Lingotek Translation 7.6

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

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

5 calls to lingotek_is_module_setup()
lingotek_admin_account_status_form in ./lingotek.admin.inc
Form constructor for the administration form.
lingotek_admin_configuration_view in ./lingotek.admin.inc
lingotek_bulk_grid_form in ./lingotek.bulk_grid.inc
lingotek_dashboard in ./lingotek.dashboard.inc
Tab: Dashboard - The main Lingotek dashboard page.
lingotek_get_node_settings_form in ./lingotek.module
Display the Lingotek node-settings form

File

./lingotek.module, line 1876

Code

function lingotek_is_module_setup($redirect = TRUE) {
  $redirect_link = lingotek_is_config_missing();
  if (!is_bool($redirect_link)) {
    if ($redirect == FALSE) {
      return FALSE;

      // Link is there, so the module is not completely set up.
    }
    drupal_goto($redirect_link);

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