function countries_configuration_country_delete in Countries 8
Same name and namespace in other branches
- 7.2 modules/countries_configuration/countries_configuration.module \countries_configuration_country_delete()
Implements hook_country_delete().
This keeps the {countries_data} clean of old country data.
File
- modules/
countries_configuration/ countries_configuration.module, line 126 - Provides the base framework for integration for storing country specific data on behalf of other modules.
Code
function countries_configuration_country_delete($country) {
db_delete('countries_data')
->condition('iso2', $country->iso2)
->execute();
}