function hook_user_login

Perform actions when the user logs in successfully.

Notice that $account is passed by reference. You may make whatever changes you wish to this object.

1 function implements hook_user_login()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

system_perform_user_login in modules/system/system.module
Actually performs the logging in of a user with user_id.

File

includes/hook.api.php, line 596
Lists all available hooks within FlightPath's core code.

Code

function hook_user_login(&$account) {
  if ($account->uid = 9) {
    $account->this_is_jeff = TRUE;
  }
}