function cer_profile2_cer_fields in Corresponding Entity References 7.3
Implements hook_cer_fields().
File
- extensions/
cer_profile2/ cer_profile2.cer.inc, line 6
Code
function cer_profile2_cer_fields() {
$fields = array();
// Create a fake field for each Profile2 type.
foreach (array_keys(profile2_get_types()) as $profile_type) {
// Profiles can only be attached to user accounts.
$fields["user:user:profile_{$profile_type}"]['class'] = 'CerProfile2Field';
}
return $fields;
}