You are here

function ip_user_insert in IP address manager 7

Same name and namespace in other branches
  1. 7.2 ip.module \ip_user_insert()

Implements hook_user_insert().

File

./ip.module, line 107
IP address manager module.

Code

function ip_user_insert(&$edit, $account) {
  global $user;

  // Track anonymous registration (Do not track administration account creation).
  if (empty($user->uid) || $user->uid == $account->uid) {
    ip_tracker_user_save($account->uid);
  }
}