You are here

public function BatEventTypeController::delete in Booking and Availability Management Tools for Drupal 7

Parameters

array $ids:

Overrides EntityAPIControllerExportable::delete

File

modules/bat_event/bat_event.module, line 1551
Manage Events - Events store the EventValue of a Unit over a period of time.

Class

BatEventTypeController
The Controller for Event Type entities.

Code

public function delete($ids, DatabaseTransaction $transaction = NULL) {
  parent::delete($ids);
  foreach ($ids as $id) {

    // Delete all tables necessary for this Event Type.
    bat_event_delete_event_type_schema($id);

    // Delete the states associated with this Event Type.
    bat_event_delete_states_by_type($id);
  }
}