You are here

function ip2country_uninstall in IP-based Determination of a Visitor's Country 7

Same name and namespace in other branches
  1. 8 ip2country.install \ip2country_uninstall()
  2. 6 ip2country.install \ip2country_uninstall()

Implements hook_uninstall().

File

./ip2country.install, line 106
Install, update, and uninstall functions for the ip2country module.

Code

function ip2country_uninstall() {

  // Remove all module variables from the database.
  variable_del('ip2country_populate_database_on_install');
  variable_del('ip2country_debug');
  variable_del('ip2country_test_type');
  variable_del('ip2country_test_ip_address');
  variable_del('ip2country_test_country');
  variable_del('ip2country_rir');
  variable_del('ip2country_md5_checksum');
  variable_del('ip2country_last_update');
  variable_del('ip2country_last_update_rir');
  variable_del('ip2country_update_interval');
  variable_del('ip2country_watchdog');

  // Obsolete variables - we no longer store these, but a prior version
  // did. Try to remove just in case they're still hanging around.
  variable_del('ip2country_lookup');
  variable_del('ip2country_lookup_button');
  variable_del('ip2country_update_database');

  // Date/time format settings.
  variable_del('date_format_ip2country_date');
  variable_del('date_format_ip2country_time');
}