function location_uninstall in Location 7.3
Same name and namespace in other branches
- 5.3 location.install \location_uninstall()
- 6.3 location.install \location_uninstall()
- 7.5 location.install \location_uninstall()
- 7.4 location.install \location_uninstall()
Implements of hook_uninstall().
File
- ./
location.install, line 11 - Install, update and uninstall functions for the location module.
Code
function location_uninstall() {
// Delete variables.
variable_del('location_default_country');
variable_del('location_display_location');
variable_del('location_usegmap');
variable_del('location_locpick_macro');
// Delete geocoder settings.
db_delete('variable')
->condition('name', db_like('location_geocode_') . '%', 'LIKE')
->execute();
// Delete maxnum settings.
db_delete('variable')
->condition('name', db_like('location_maxnum_') . '%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache_bootstrap');
}