function user_login_destination

Same name and namespace in other branches
  1. 6.x drupal-6.x/modules/user/user.module \user_login_destination()

Helper function to rewrite the destination to avoid redirecting to login page after login.

Third-party authentication modules may use this function to determine the proper destination after a user has been properly logged in.

1 call to user_login_destination()
_openid_user_login_form_alter in drupal-7.x/modules/openid/openid.module

Archivo

drupal-7.x/modules/user/user.module, line 3937
Enables the user registration and login system.

Código

function user_login_destination() {
  $destination = drupal_get_destination();
  if ($destination['destination'] == 'user/login') {
    $destination['destination'] = 'user';
  }
  return $destination;
}