Commit ed10b794 authored by dealancer's avatar dealancer

Added entity metadata properties for contact primary fields

parent 11b31bf8
......@@ -1009,7 +1009,7 @@ function crm_core_contact_entity_property_info_alter(&$info) {
'label' => t('Primary email'),
'type' => 'text',
'description' => t('Get primary email of CRM Core Contact.'),
'getter callback' => 'crm_core_contact_get_primary_email_field',
'getter callback' => 'crm_core_contact_get_primary_email_field_value',
'computed' => TRUE,
);
}
......@@ -1017,6 +1017,6 @@ function crm_core_contact_entity_property_info_alter(&$info) {
/**
* Returns primary email.
*/
function crm_core_contact_get_primary_email_field($contact) {
function crm_core_contact_get_primary_email_field_value($contact) {
return crm_core_contact_get_primary_field_value($contact, 'email');
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment