You are here

function registration_property_user_get in Entity Registration 7

Same name and namespace in other branches
  1. 8 registration.module \registration_property_user_get()

Callback to get $registration->user.

See also

registration_entity_property_info().

1 string reference to 'registration_property_user_get'
RegistrationMetadataController::entityPropertyInfo in lib/registration.metadata.inc

File

./registration.module, line 1774

Code

function registration_property_user_get(Registration $registration, array $options, $property_name, $entity_type) {
  if (is_numeric($registration->user_uid)) {
    $entity = entity_load_single('user', $registration->user_uid);
    return entity_metadata_wrapper('user', $entity);
  }
}