You are here

function registration_property_email_set in Entity Registration 8

Same name and namespace in other branches
  1. 7 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 src/RegistrationMetadataController.php

File

./registration.module, line 1719

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;
  }
}