You are here

function login_destination_user_insert in Login Destination 7

Implements hook_user_insert().

File

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

Code

function login_destination_user_insert(&$edit, $account, $category) {
  global $user;
  if (!$user->uid) {

    // If the user is already logged in, it means probably that they create a
    // user account and not the user registers themselves.
    login_destination_perform_redirect('login');
  }
}