You are here

function ip2country_user_presave in IP-based Determination of a Visitor's Country 7

Implements hook_user_presave().

Takes care of storing country data into {users}.data.

File

./ip2country.module, line 176
Determination of user's Country based on IP.

Code

function ip2country_user_presave(&$edit, $account, $category) {
  if (isset($edit['country_iso_code_2'])) {
    $edit['data']['country_iso_code_2'] = $edit['country_iso_code_2'];
  }
}