function registration_property_author_get in Entity Registration 8
Same name and namespace in other branches
- 8.2 registration.module \registration_property_author_get()
- 7.2 registration.module \registration_property_author_get()
- 7 registration.module \registration_property_author_get()
Callback to get $registration->author.
See also
registration_entity_property_info().
1 string reference to 'registration_property_author_get'
File
- ./
registration.module, line 1685
Code
function registration_property_author_get(Registration $registration, array $options, $property_name, $entity_type) {
if (is_numeric($registration->author_uid)) {
$entity = entity_load_single('user', $registration->author_uid);
return entity_metadata_wrapper('user', $entity);
}
}