function ip2country_uninstall in IP-based Determination of a Visitor's Country 6
Same name and namespace in other branches
- 8 ip2country.install \ip2country_uninstall()
- 7 ip2country.install \ip2country_uninstall()
Implements hook_uninstall().
Removes all tables and variables inserted into the database by this module.
File
- ./
ip2country.install, line 116 - Install, update, and uninstall functions for the ip2country module.
Code
function ip2country_uninstall() {
// Remove all database tables created by this module
drupal_uninstall_schema('ip2country');
// 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_last_update');
variable_del('ip2country_last_update_rir');
variable_del('ip2country_lookup');
variable_del('ip2country_lookup_button');
variable_del('ip2country_update_interval');
variable_del('ip2country_update_database');
variable_del('ip2country_watchdog');
}