function smart_ip_set_location_data in Smart IP 6
Same name and namespace in other branches
- 6.2 smart_ip.module \smart_ip_set_location_data()
- 7.2 smart_ip.module \smart_ip_set_location_data()
- 7 smart_ip.module \smart_ip_set_location_data()
Set the user's location information
2 calls to smart_ip_set_location_data()
- smart_ip_init in ./
smart_ip.module - Implements hook_init()
- smart_ip_user in ./
smart_ip.module - Implements hook_user_login().
File
- ./
smart_ip.module, line 574 - Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address
Code
function smart_ip_set_location_data($account, $location) {
global $user;
if ($account->uid == $user->uid) {
smart_ip_set_session_data($location);
}
smart_ip_set_user_data($account, $location);
}