function registration_property_user_set in Entity Registration 7
Same name and namespace in other branches
- 8 registration.module \registration_property_user_set()
Callback to set $registration->user that supports null value.
1 string reference to 'registration_property_user_set'
File
- ./
registration.module, line 1784
Code
function registration_property_user_set(Registration $registration, $name, $value, $lang, $type, $info) {
if (is_object($value) && ($account = $value
->value())) {
$registration->{$info['schema field']} = $account->uid;
}
else {
$registration->{$info['schema field']} = NULL;
}
}