function civicrm_entity_contact_has_location_element_email in CiviCRM Entity 7.2
Parameters
$contact:
$location_type_id:
Return value
array
File
- ./
civicrm_entity.module, line 3258
Code
function civicrm_entity_contact_has_location_element_email($contact, $location_type_id) {
if (!empty($contact->email)) {
return TRUE;
}
$email = civicrm_entity_contact_get_location_element('email', $contact, $location_type_id);
if (!empty($email['fetched_email'])) {
return TRUE;
}
return FALSE;
}