function cer_get_entity_lineage in Corresponding Entity References 7.3
Gets the lineage of the entity as a string, in the format entity_type:bundle:%
1 string reference to 'cer_get_entity_lineage'
- cer_entity_property_info in ./
cer.module - Implements hook_entity_property_info().
File
- ./
cer.properties.inc, line 28 - Contains entity property callback functions for the 'cer' struct exposed to Entity API.
Code
function cer_get_entity_lineage(array $data, array $options, $property, $data_type, array $info) {
list(, , $bundle) = entity_extract_IDs($data[0], $data[1]);
return $data[0] . ":{$bundle}:";
}