You are here

function registration_load in Entity Registration 8

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

Loads a registration by ID.

1 call to registration_load()
RegistrationTestCase::loadRegistration in src/Tests/RegistrationTestCase.php

File

./registration.module, line 1757

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