function user_stats_user_insert in User Stats 7
Implements hook_user_insert to record ip of new user on registration.
File
- ./
user_stats.module, line 950 - User Stats provides commonly requested user statistics for themers. These are:
Code
function user_stats_user_insert(&$edit, $account, $category) {
global $user;
if ($user->uid == 0) {
$uid = $account->uid;
$ip = ip_address();
user_stats_ip_address_update($uid, $ip);
}
}