You are here

function registration_load in Entity Registration 7

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

Loads a registration by ID.

1 call to registration_load()
RegistrationTestCase::loadRegistration in tests/registration.test
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;
}