You are here

function registration_load_multiple in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 registration.module \registration_load_multiple()
  2. 8 registration.module \registration_load_multiple()
  3. 7 registration.module \registration_load_multiple()

Loads multiple registrations by ID or based on a set of matching conditions.

Parameters

$registration_ids:

$conditions: An array of conditions on the {registration} table in the form 'field' => $value.

$reset: Whether to reset the internal registration loading cache.

Return value

An array of registration objects indexed by registration_id.

See also

entity_load()

6 calls to registration_load_multiple()
RegistrationViewsHandlerStateEdit::views_form_submit in modules/registration_views/registration_views.module
Form submit method.
registration_checkin_get_all_registrations in modules/registration_checkin/registration_checkin.module
Get all registrants for a specific host entity.
registration_cron in ./registration.module
Implements hook_cron().
registration_load in ./registration.module
Loads a registration by ID.
registration_registrations_page in ./registration.module
Page callback: Show a list of registrations for a host entity.

... See full list

File

./registration.module, line 1900

Code

function registration_load_multiple($registration_ids = array(), $conditions = array(), $reset = FALSE) {
  if (empty($registration_ids) && empty($conditions)) {
    return array();
  }
  return entity_load('registration', $registration_ids, $conditions, $reset);
}