You are here

function cer_profile2_get_profile2_owner in Corresponding Entity References 7.3

Entity API getter callback. Returns the user account which owns a Profile2.

Return value

EntityDrupalWrapper.

1 string reference to 'cer_profile2_get_profile2_owner'
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 53

Code

function cer_profile2_get_profile2_owner(array $data, array $options, $property, $data_type, array $info) {
  return new EntityDrupalWrapper('user', $data[1]
    ->user());
}