You are here

function availability_calendars_uninstall in Availability Calendars 5

Same name and namespace in other branches
  1. 6.2 availability_calendars.install \availability_calendars_uninstall()
  2. 6 availability_calendars.install \availability_calendars_uninstall()
  3. 7.2 availability_calendars.install \availability_calendars_uninstall()

Implementation of hook_uninstall().

File

./availability_calendars.install, line 42

Code

function availability_calendars_uninstall() {
  db_query('DROP TABLE {availability_calendars_day}');
  db_query('DROP TABLE {availability_calendars_week}');
  variable_del('availability_calendars_display_nodeview');
  foreach (node_get_types() as $type => $name) {
    variable_del('availability_calendars_' . $type);
  }
  drupal_set_message(t('Availability Calendars module uninstalled successfully.'), 'warning');
}