You are here

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

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

Empties the ip2country table in the database.

2 calls to ip2country_empty_database()
ip2countryTestCase::testDbDownload in tests/ip2country.test
Tests DB download.
ip2countryTestCase::testIpLookup in tests/ip2country.test
Tests IP lookup for addresses in / not in the database.

File

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

Code

function ip2country_empty_database() {
  db_truncate('ip2country')
    ->execute();
}