You are here

function smart_ip_reset_db_update_meta_data in Smart IP 6

Same name and namespace in other branches
  1. 6.2 smart_ip.module \smart_ip_reset_db_update_meta_data()
  2. 7.2 smart_ip.module \smart_ip_reset_db_update_meta_data()
  3. 7 smart_ip.module \smart_ip_reset_db_update_meta_data()

Reset meta data of Smart IP database update process.

File

./smart_ip.module, line 746
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() {
  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);
}