hook_user_logout($account)
The user just logged out.
$account: The user object on which the operation was just performed.
function hook_user_logout($account) { db_insert('logouts') ->fields(array( 'uid' => $account->id(), 'time' => time(), )) ->execute(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!user!user.api.php/function/hook_user_logout/8.1.x