You are here

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

Loads multiple units based on certain conditions.

Parameters

array $unit_ids: An array of unit IDs.

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

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

Return value

array An array of unit objects, indexed by unit_id.

See also

entity_load()

rooms_unit_load()

3 calls to rooms_unit_load_multiple()
rooms_booking_handler_unit_filter::admin_summary in modules/rooms_booking/views/rooms_booking_handler_unit_filter.inc
Display the filter on the administrative summary.
rooms_booking_handler_unit_filter::value_form in modules/rooms_booking/views/rooms_booking_handler_unit_filter.inc
Options form subform for setting options.
rooms_unit_load in modules/rooms_unit/rooms_unit.module
Fetches a bookable unit object.

File

modules/rooms_unit/rooms_unit.module, line 432
Manage units - Units are things that can be booked on a nightly basis (e.g. rooms - but also villas bungalows, etc).

Code

function rooms_unit_load_multiple($unit_ids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('rooms_unit', $unit_ids, $conditions, $reset);
}