function total_control_user in Total Control Admin Dashboard 6.2
Implementation of hook_user().
Redirects to the dashboard if configured.
File
- ./
total_control.module, line 116
Code
function total_control_user($op, &$edit, &$account, $category = NULL) {
if (!(arg(0) == 'user' && arg(1) == 'reset')) {
if ($op == 'login' && (variable_get('total_control_login_redirect', 0) == 1 && user_access('have total control'))) {
drupal_goto('admin/dashboard');
}
}
}