You are here

function ip2country_empty_database in IP-based Determination of a Visitor's Country 6

Same name and namespace in other branches
  1. 8 ip2country.inc \ip2country_empty_database()
  2. 7 ip2country.inc \ip2country_empty_database()

Empties the ip2country table in the database.

3 calls to ip2country_empty_database()
ip2countryTestCase::testDBDownload in ./ip2country.test
Tests DB download
ip2countryTestCase::testIPLookup in ./ip2country.test
Tests IP lookup for addresses in / not in the database.
ip2country_update_database in ./ip2country.inc
Updates the database.

File

./ip2country.inc, line 168
Utility routines to load the IP to Country database.

Code

function ip2country_empty_database() {
  db_query('TRUNCATE TABLE {ip2country}');
}