| Versions | |
|---|---|
| 7 | hook_user_logout($account) |
The user just logged out.
$account The user object on which the operation was just performed.
drupal/
<?php
function hook_user_logout($account) {
db_insert('logouts')
->fields(array(
'uid' => $account->uid,
'time' => time(),
))
->execute();
}
?>