You are here

function smart_ip_update_7002 in Smart IP 7.2

Same name and namespace in other branches
  1. 7 smart_ip.install \smart_ip_update_7002()

Added smart_ip_source variable.

File

./smart_ip.install, line 197
Installation callback for Smart IP.

Code

function smart_ip_update_7002() {
  if (variable_get('smart_ip_use_ipinfodb_service', FALSE)) {
    variable_set('smart_ip_source', 'ipinfodb_service');
  }
  elseif (variable_get('smart_ip_auto_update', FALSE)) {
    variable_set('smart_ip_source', 'local_db');
  }
  variable_del('smart_ip_use_ipinfodb_service');
}