You are here

function hook_user_logout in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/user/user.api.php \hook_user_logout()

The user just logged out.

Parameters

$account: The user object on which the operation was just performed.

Related topics

1 function implements hook_user_logout()

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

user_user_logout in core/modules/user/user.module
Implements hook_user_logout().
1 invocation of hook_user_logout()
user_logout in core/modules/user/user.module
Logs the current user out.

File

core/modules/user/user.api.php, line 147
Hooks provided by the User module.

Code

function hook_user_logout($account) {
  db_insert('logouts')
    ->fields(array(
    'uid' => $account
      ->id(),
    'time' => time(),
  ))
    ->execute();
}