function user_stats_user in User Stats 6
Same name and namespace in other branches
- 5 user_stats.module \user_stats_user()
Implementation of hook_user().
File
- ./
user_stats.module, line 470 - User Stats provides commonly requested user statistics for themers. These are:
Code
function user_stats_user($op, &$edit, &$account) {
// Update login count.
if ($op == 'login' && variable_get('user_stats_count_logins', TRUE)) {
user_stats_login_count_update('increment', $account->uid);
}
// Update IP Address.
if ($op == 'login' || $op == 'logout') {
user_stats_ip_address_update($account->uid, ip_address());
}
}