You are here

function bat_event_delete in Booking and Availability Management Tools for Drupal 7

Same name and namespace in other branches
  1. 8 modules/bat_event/bat_event.module \bat_event_delete()

Deletes a event.

Parameters

BatEvent $event: The BatEvent object that represents the event to delete.

2 calls to bat_event_delete()
bat_event_delete_form_submit in modules/bat_event/bat_event.admin.inc
Submit callback for event_delete_form.
bat_event_form_submit_delete in modules/bat_event/bat_event.admin.inc
Form API submit callback for the delete button.

File

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

Code

function bat_event_delete(BatEvent $event) {
  bat_event_delete_multiple(array(
    $event->event_id,
  ));
}