You are here

function bat_event_uninstall in Booking and Availability Management Tools for Drupal 7

Implements hook_uninstall().

File

modules/bat_event/bat_event.install, line 12
Sets up the base table for our entity and a table to store information about the entity types.

Code

function bat_event_uninstall() {
  drupal_load('module', 'bat_event');
  $event_types = db_select('bat_event_type', 'b')
    ->fields('b', array(
    'type',
  ))
    ->execute()
    ->fetchAll();
  foreach ($event_types as $event_type) {
    bat_event_delete_event_type_schema($event_type->type);
  }
}