You are here

function event_uninstall in Event 5.2

Same name and namespace in other branches
  1. 5 event.install \event_uninstall()

Implementation of hook_uninstall().

File

./event.install, line 115

Code

function event_uninstall() {
  db_query('DROP TABLE {event}');
  db_query('DROP TABLE {event_timezones}');
  db_query('ALTER TABLE {users} DROP timezone_id');
  variable_del('event_timezone_input');
  variable_del('event_timezone_display');
  variable_del('event_ampm');
  variable_del('event_upcoming_limit');
  variable_del('event_overview');
  variable_del('event_table_duration');
  variable_del('event_taxonomy_control');
  variable_del('event_type_control');
  variable_del('event_range_prev');
  variable_del('event_range_next');
  foreach (node_get_types() as $type => $info) {
    variable_del('event_nodeapi_' . $type);
  }
  drupal_set_message(t('Event module successfully uninstalled'));
}