You are here

function smart_ip_uninstall in Smart IP 7.2

Same name and namespace in other branches
  1. 8.4 smart_ip.install \smart_ip_uninstall()
  2. 8.3 smart_ip.install \smart_ip_uninstall()
  3. 6.2 smart_ip.install \smart_ip_uninstall()
  4. 6 smart_ip.install \smart_ip_uninstall()
  5. 7 smart_ip.install \smart_ip_uninstall()

Implements hook_uninstall().

Removes all tables and variables inserted into the database by this module.

File

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

Code

function smart_ip_uninstall() {
  variable_del('smart_ip_source');
  variable_del('smart_ip_ip2location_bin_cache');
  variable_del('smart_ip_ip2location_bin_path');
  variable_del('smart_ip_ip2location_ipv6_bin_path');
  variable_del('smart_ip_abstract_key');
  variable_del('smart_ip_abstract_version');
  variable_del('smart_ip_maxmind_service');
  variable_del('smart_ip_maxmind_key');
  variable_del('smart_ip_use_ipinfodb_api_version');
  variable_del('smart_ip_correct_ipinfodb_key');
  variable_del('smart_ip_ipinfodb_key');
  variable_del('smart_ip_get_zip_done');
  variable_del('smart_ip_extract_zip_done');
  variable_del('smart_ip_store_location_csv_done');
  variable_del('smart_ip_db_update_busy');
  variable_del('smart_ip_db_update_busy_timeout');
  variable_del('smart_ip_indicator_last_ip');
  variable_del('smart_ip_location_csv_pointer');
  variable_del('smart_ip_location_csv_last_pointer');
  variable_del('smart_ip_blocks_csv_pointer');
  variable_del('smart_ip_blocks_csv_last_pointer');
  variable_del('smart_ip_auto_update');
  variable_del('smart_ip_last_update');
  variable_del('smart_ip_roles_to_geolocate');
  variable_del('smart_ip_eu_visitor_dont_save');
  variable_del('smart_ip_timezone_format');
  variable_del('smart_ip_save_user_location_creation');
  variable_del('smart_ip_allowed_pages');
  variable_del('smart_ip_roles_in_debug_mode');
  variable_del('smart_ip_roles_in_debug_mode_ip');
  variable_del('smart_ip_maxmind_bin_db_last_update');
  variable_del('smart_ip_maxmind_bin_db_update_error');
  variable_del('smart_ip_maxmind_license');
  variable_del('smart_ip_maxmind_bin_db_auto_update');
  variable_del('smart_ip_maxmind_bin_custom_path');
  variable_del('smart_ip_maxmind_geoip2_bin_db_last_update');
  variable_del('smart_ip_maxmind_geoip2_bin_db_update_error');
  variable_del('smart_ip_maxmind_geoip2_bin_user_account');
  variable_del('smart_ip_maxmind_geoip2_bin_version');
  variable_del('smart_ip_maxmind_geoip2_bin_edition');
  variable_del('smart_ip_maxmind_geoip2_license');
  variable_del('smart_ip_maxmind_geoip2_bin_db_auto_update');
  variable_del('smart_ip_maxmind_geoip2_bin_custom_path');
  variable_del('cache_class_cache_smart_ip');
  variable_del('smart_ip_get_location_timeout');
}