You are here

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

Load multiple bookings based on certain conditions.

Parameters

array $booking_ids: An array of booking IDs.

array $conditions: An array of conditions to match against the {rooms_bookings} table.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

array An array of booking objects, indexed by booking_id.

See also

entity_load()

rooms_booking_load()

3 calls to rooms_booking_load_multiple()
rooms_booking_form_rooms_unit_delete_form_alter in modules/rooms_booking/rooms_booking.module
Implements hook_form_FORM_ID_alter().
rooms_booking_ids in modules/rooms_booking/rooms_booking.module
Get a list of Booking keyed by id and name in value.
rooms_booking_load in modules/rooms_booking/rooms_booking.module
Fetches a booking object.

File

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

Code

function rooms_booking_load_multiple($booking_ids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('rooms_booking', $booking_ids, $conditions, $reset);
}