You are here

function registration_property_email_set in Entity Registration 7

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

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

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

File

./registration.module, line 1796

Code

function registration_property_email_set(Registration $registration, $name, $value, $lang, $type, $info) {
  if (!empty($value)) {
    $registration->{$info['schema field']} = $value;
  }
  else {
    $registration->{$info['schema field']} = NULL;
  }
}