You are here

function cer_profile2_get_profile2_depth in Corresponding Entity References 7.3

Entity API getter callback. Returns the depth of a Profile2. This is always 1, since the profile is embedded directly under the user account as far as CER is concerned.

Return value

integer

1 string reference to 'cer_profile2_get_profile2_depth'
cer_profile2_entity_property_info_alter in extensions/cer_profile2/cer_profile2.module
Implements hook_entity_property_info_alter().

File

extensions/cer_profile2/cer_profile2.module, line 44

Code

function cer_profile2_get_profile2_depth(array $data, array $options, $property, $data_type, array $info) {
  return 1;
}