You are here

function registration_load in Entity Registration 7.2

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

Loads a registration by ID.

3 calls to registration_load()
RegistrationTestCase::loadRegistration in tests/registration.test
Loads a registration from the database, avoiding the cache.
registration_checkin_checkin_action_callback in modules/registration_checkin/registration_checkin.module
AJAX callback for checking in a specific registrant.
registration_checkin_state_update_callback in modules/registration_checkin/registration_checkin.module
AJAX submit handler for the state update selection form.

File

./registration.module, line 1876

Code

function registration_load($registration_id) {
  if (empty($registration_id)) {
    return FALSE;
  }
  $registrations = registration_load_multiple(array(
    $registration_id,
  ), array());
  return $registrations ? reset($registrations) : FALSE;
}