function smart_ip_update_7001 in Smart IP 7
Same name and namespace in other branches
- 7.2 smart_ip.install \smart_ip_update_7001()
Removed smart_ip_save_user_location variable, replaced with geotargeting by role.
File
- ./
smart_ip.install, line 169 - Installation callback for Smart IP.
Code
function smart_ip_update_7001() {
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');
}