You are here

function bat_unit_load_multiple in Booking and Availability Management Tools for Drupal 7

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

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 {bat_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()

bat_unit_load()

7 calls to bat_unit_load_multiple()
bat_booking_confirmation_form_submit in modules/bat_booking/bat_booking_example/bat_booking_example.module
Submit function for the bat_booking_confirmation_form form.
bat_event_get_calendar in modules/bat_event/bat_event.module
Retrieves relevant units and instantiates a BAT calendar object than can be reused. It is preferred to use this function to reduce the cost of setting up a calendar (i.e. loading units).
bat_event_ui_bulk_update_form_submit in modules/bat_event_ui/bat_event_ui.module
Submit callback for bat_event_ui_bulk_update_form form.
bat_facets_search_api_query_alter in modules/bat_facets/bat_facets.module
Implements hook_search_api_query_alter().
bat_type_add_units_form_submit in modules/bat_unit/bat_type.admin.inc
Submit handler for unit add form.

... See full list

File

modules/bat_unit/bat_unit.module, line 827

Code

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