function smart_ip_update_6000 in Smart IP 6
Same name and namespace in other branches
- 6.2 smart_ip.install \smart_ip_update_6000()
Removed smart_ip_save_user_location variable, replaced with geotargeting by role.
File
- ./
smart_ip.install, line 151
Code
function smart_ip_update_6000() {
if (variable_get('smart_ip_save_user_location', TRUE)) {
variable_set('smart_ip_roles_to_geolocate', array(
DRUPAL_AUTHENTICATED_RID,
));
}
else {
variable_set('smart_ip_roles_to_geolocate', array());
}
variable_del('smart_ip_save_user_location');
}