You are here

function weather_uninstall in Weather 7.2

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 weather.install \weather_uninstall()

Implements hook_uninstall().

File

./weather.install, line 122
Install, update and uninstall functions for the weather module.

Code

function weather_uninstall() {
  variable_del('weather_image_directory');
  variable_del('date_format_weather');
  variable_del('weather_forecast_days');
  variable_del('weather_use_webfont');

  // 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();
}