You are here

public function RedhenContact::allEmail in RedHen CRM 7

Return all emails and their properties in an array..

Return value

array Array of email value arrays.

1 call to RedhenContact::allEmail()
RedhenContact::save in modules/redhen_contact/lib/redhen_contact.entity.inc
Override parent::save() to manage user association.

File

modules/redhen_contact/lib/redhen_contact.entity.inc, line 121
Redhen Contact entity classses.

Class

RedhenContact
The class used for contact entities.

Code

public function allEmail() {
  $emails = array();
  if (!empty($this->{REDHEN_CONTACT_EMAIL_FIELD})) {
    $emails = $this->{REDHEN_CONTACT_EMAIL_FIELD}[LANGUAGE_NONE];
  }
  return $emails;
}