You are here

function registration_property_host_set in Entity Registration 7

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.2 registration.module \registration_property_host_set()

Callback to set $registration->host.

See also

registration_entity_property_info().

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

File

./registration.module, line 1752

Code

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