function bat_booking_delete in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_booking/bat_booking.module \bat_booking_delete()
Deletes a Bat Booking.
Parameters
BatBooking $booking: The BatBooking object that represents the booking to delete.
1 call to bat_booking_delete()
- bat_booking_form_submit_delete in modules/
bat_booking/ bat_booking.admin.inc - Form API submit callback for the delete button.
File
- modules/
bat_booking/ bat_booking.module, line 500
Code
function bat_booking_delete(BatBooking $booking) {
$booking
->delete();
}