function smart_ip_reset_db_update_meta_data in Smart IP 7.2
Same name and namespace in other branches
- 6.2 smart_ip.module \smart_ip_reset_db_update_meta_data()
- 6 smart_ip.module \smart_ip_reset_db_update_meta_data()
- 7 smart_ip.module \smart_ip_reset_db_update_meta_data()
Reset meta data of Smart IP database update process.
1 call to smart_ip_reset_db_update_meta_data()
- _smart_ip_database_reset_update_submit in includes/
smart_ip.admin.inc - Reset Smart IP local database update process.
File
- ./
smart_ip.module, line 1658 - Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address
Code
function smart_ip_reset_db_update_meta_data() {
smart_ip_check_fix_local_db();
if (db_table_exists('smart_ip_update_table') && db_table_exists('smart_ip')) {
// Remove the temporary table "smart_ip_update_table" if the final "smart_ip" table exist
db_drop_table('smart_ip_update_table');
}
cache_clear_all('smart_ip:', 'cache_smart_ip', TRUE);
variable_set('smart_ip_blocks_csv_pointer', 0);
variable_set('smart_ip_db_update_busy', FALSE);
variable_set('smart_ip_get_zip_done', FALSE);
variable_set('smart_ip_extract_zip_done', FALSE);
variable_set('smart_ip_store_location_csv_done', FALSE);
}