function lingotek_is_module_setup in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.module \lingotek_is_module_setup()
- 7.2 lingotek.module \lingotek_is_module_setup()
- 7.3 lingotek.module \lingotek_is_module_setup()
- 7.4 lingotek.module \lingotek_is_module_setup()
- 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;
}