| 7 user.api.php | hook_user_logout($account) |
| 8 user.api.php | hook_user_logout($account) |
The user just logged out.
Parameters
$account: The user object on which the operation was just performed.
Related topics
2 functions implement hook_user_logout()
1 invocation of hook_user_logout()
File
- modules/
user/ user.api.php, line 305 - Hooks provided by the User module.
Code
function hook_user_logout($account) {
db_insert('logouts')
->fields(array(
'uid' => $account->uid,
'time' => time(),
))
->execute();
}
Login or register to post comments