You are here

function smart_ip_update_6001 in Smart IP 6.2

Same name and namespace in other branches
  1. 6 smart_ip.install \smart_ip_update_6001()

Added smart_ip_source variable.

File

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

Code

function smart_ip_update_6001() {
  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');
}