function geoip_language_mapping_delete in GeoIP API 6
Same name and namespace in other branches
- 7 geoip_language/geoip_language.module \geoip_language_mapping_delete()
API function to delete a mapping.
1 call to geoip_language_mapping_delete()
- geoip_admin_delete_mapping_submit in geoip_language/
geoip_language.admin.inc
File
- geoip_language/
geoip_language.module, line 203 - Language negotiation based on GeoIP detection.
Code
function geoip_language_mapping_delete($country) {
db_query('DELETE FROM {geoip_language} WHERE country="%s"', $country);
geoip_language_mappings(TRUE);
$countries = geoip_country_values();
watchdog('geoip_language', 'GeoIP mapping deleted for %country', array(
'%country' => $countries[$country],
));
}