function smart_ip_uninstall in Smart IP 6
Same name and namespace in other branches
- 8.4 smart_ip.install \smart_ip_uninstall()
- 8.3 smart_ip.install \smart_ip_uninstall()
- 6.2 smart_ip.install \smart_ip_uninstall()
- 7.2 smart_ip.install \smart_ip_uninstall()
- 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 189
Code
function smart_ip_uninstall() {
/* Remove all database tables created by this module */
drupal_uninstall_schema('smart_ip');
variable_del('smart_ip_source');
variable_del('smart_ip_ip2location_bin_path');
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_debug');
variable_del('smart_ip_test_ip_address');
variable_del('smart_ip_roles_to_geolocate');
}