function oa_core_login_prepare_goto in Open Atrium Core 7.2
Pass destination to drupal_goto.
1 call to oa_core_login_prepare_goto()
- oa_core_login_perform_redirect in includes/
oa_core.login.inc - Evaluate rules and perform redirect. This function is intended to be used by external modules.
File
- includes/
oa_core.login.inc, line 93 - Code for controlling redirection of login Some of this code comes from the login_destination module
Code
function oa_core_login_prepare_goto($destination) {
// Check if $_GET['destination'] should overwrite us
if (!isset($_GET['destination']) || !variable_get('login_destination_preserve_destination', TRUE)) {
$GLOBALS['destination'] = $destination;
}
}