You are here

function cer_get_entity_depth in Corresponding Entity References 7.3

Gets the entity depth as an integer. cer_entity_property_info_alter() overrides this callback for field collections, and for all other entity types it's 0 (top level).

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

File

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

Code

function cer_get_entity_depth(array $data, array $options, $property, $data_type, array $info) {
  return 0;
}