You are here

function entityreference_field_uuid_load in Universally Unique IDentifier 7

Implements hook_field_uuid_load().

Kept here because it is in D8 core.

Related topics

File

./uuid.core.inc, line 367
Implementation of UUID hooks for all core modules.

Code

function entityreference_field_uuid_load($entity_type, $entity, $field, $instance, $langcode, &$items) {

  // TODO: This is not really good, but as of now 'entity_property_id_to_uuid()'
  // can't handle a single $item.
  entity_property_id_to_uuid($items, $field['settings']['target_type'], 'target_id');
}