function geoip_language_mapping_delete in GeoIP API 7
Same name and namespace in other branches
- 6 geoip_language/geoip_language.module \geoip_language_mapping_delete()
API function to delete a mapping.
Return value
boolean
1 call to geoip_language_mapping_delete()
- geoip_admin_delete_mapping_submit in geoip_language/
geoip_language.admin.inc - Process a confirmed delete request of a mapping item.
File
- geoip_language/
geoip_language.module, line 218 - 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],
));
}