You are here

function cer_get_entity_owner in Corresponding Entity References 7.3

Gets the ultimate owner of the entity as an EntityDrupalWrapper. cer_entity_property_info_alter() overrides this callback for field collections, and for all other entity types the entity owns itself.

1 string reference to 'cer_get_entity_owner'
cer_entity_property_info in ./cer.module
Implements hook_entity_property_info().

File

./cer.properties.inc, line 46
Contains entity property callback functions for the 'cer' struct exposed to Entity API.

Code

function cer_get_entity_owner(array $data, array $options, $property, $data_type, array $info) {
  return new EntityDrupalWrapper($data[0], $data[1]);
}