You are here

function login_destination_prepare_goto in Login Destination 7

Pass destination to drupal_goto.

1 call to login_destination_prepare_goto()
login_destination_perform_redirect in ./login_destination.module
Evaluate rules and perform redirect.

File

./login_destination.module, line 365
Control where users are directed to, once they login

Code

function login_destination_prepare_goto($destination) {

  // Check if $_GET['destination'] should overwrite us.
  if (!isset($_GET['destination']) || !variable_get('login_destination_preserve_destination', FALSE)) {
    $GLOBALS['destination'] = $destination;
  }
}