function weather_uninstall in Weather 7
Same name and namespace in other branches
- 5.6 weather.install \weather_uninstall()
- 5 weather.install \weather_uninstall()
- 6.5 weather.install \weather_uninstall()
- 7.3 weather.install \weather_uninstall()
- 7.2 weather.install \weather_uninstall()
Implement hook_uninstall().
File
- ./
weather.install, line 89 - Install, update and uninstall functions for the weather module.
Code
function weather_uninstall() {
variable_del('weather_image_directory');
// Remove blocks provided by the module
db_delete('block')
->condition('module', 'weather')
->execute();
db_delete('block_node_type')
->condition('module', 'weather')
->execute();
db_delete('block_role')
->condition('module', 'weather')
->execute();
}