You are here

function weather_uninstall in Weather 7

Same name and namespace in other branches
  1. 5.6 weather.install \weather_uninstall()
  2. 5 weather.install \weather_uninstall()
  3. 6.5 weather.install \weather_uninstall()
  4. 7.3 weather.install \weather_uninstall()
  5. 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();
}