You are here

function weather_uninstall in Weather 6.5

Same name and namespace in other branches
  1. 5.6 weather.install \weather_uninstall()
  2. 5 weather.install \weather_uninstall()
  3. 7.3 weather.install \weather_uninstall()
  4. 7 weather.install \weather_uninstall()
  5. 7.2 weather.install \weather_uninstall()

Implementation of hook_uninstall().

File

./weather.install, line 49
Database installation of weather module.

Code

function weather_uninstall() {
  variable_del('weather_fetch');
  variable_del('weather_use_cron');
  variable_del('weather_image_directory');

  // Remove the database schema
  drupal_uninstall_schema('weather');

  // Remove blocks provided by the module
  db_query("DELETE FROM {blocks} WHERE module='weather'");
  db_query("DELETE FROM {blocks_roles} WHERE module='weather'");
}