hook_user_logout($account)
The user just logged out.
Parameters
$account: The user object on which the operation was just performed.
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/modules/user/user.api.php, line 147
- Hooks provided by the User module.
Code
1 2 3 4 5 6 7 8 | function hook_user_logout( $account ) { db_insert( 'logouts' ) ->fields( array ( 'uid' => $account ->id(), 'time' => time(), )) ->execute(); } |
Please login to continue.