You are here

public function RedhenContact::email in RedHen CRM 7

Return a contacts primary email.

Return value

array Email value as an array.

File

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

Class

RedhenContact
The class used for contact entities.

Code

public function email() {
  $wrapper = entity_metadata_wrapper($this
    ->entityType(), $this);
  return $wrapper->email
    ->value();
}