You are here

function rooms_booking_delete_multiple in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Delete multiple bookings.

Parameters

array $booking_ids: An array of booking IDs.

bool $delete_line_item: Flag indicating if the associated line_item should be deleted or not.

2 calls to rooms_booking_delete_multiple()
FeatureContext::after in test/features/bootstrap/FeatureContext.php
@AfterScenario
rooms_booking_delete in modules/rooms_booking/rooms_booking.module
Deletes a booking.

File

modules/rooms_booking/rooms_booking.module, line 767
Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.

Code

function rooms_booking_delete_multiple(array $booking_ids, $delete_line_item = TRUE) {
  entity_get_controller('rooms_booking')
    ->delete($booking_ids, $delete_line_item);
}