You are here

function registration_property_host_set in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 registration.module \registration_property_host_set()
  2. 8 registration.module \registration_property_host_set()
  3. 7 registration.module \registration_property_host_set()

Callback to set $registration->host.

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

File

./registration.module, line 1816

Code

function registration_property_host_set(Registration $registration, $name, $value, $lang, $type, $info) {
  $registration->entity_type = $value
    ->type();
  $registration->entity_id = $value
    ->getIdentifier();
}