You are here

function registration_load in Entity Registration 8.2

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

Loads a registration by ID.

2 calls to registration_load()
RegistrationTestCase::loadRegistration in tests/registration.test
Loads a registration from the database, avoiding the cache.
RegistrationTestCase::loadRegistration in src/RegistrationTestCase.php
Loads a registration from the database, avoiding the cache.

File

./registration.module, line 1844

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;
}