You are here

function registration_property_registrant_set in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 registration.module \registration_property_registrant_set()

Callback to set $registration->registrant that supports null value.

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

File

./registration.module, line 1841

Code

function registration_property_registrant_set(Registration $registration, $name, $value, $lang, $type, $info) {
  $registration->{$info['schema field']} = is_object($value) ? $value
    ->getIdentifier() : NULL;
}