public function RedhenContact::setEmail in RedHen CRM 7
Sets an email for a contact.
Parameters
string $email: Email address.
bool $default: If email is default.
bool $bulk: If email is for bulk use.
bool $hold: If email is on hold.
int $label_id: Label id.
File
- modules/
redhen_contact/ lib/ redhen_contact.entity.inc, line 163 - Redhen Contact entity classses.
Class
- RedhenContact
- The class used for contact entities.
Code
public function setEmail($email, $default = 1, $bulk = 1, $hold = 0, $label_id = 0) {
$this->{REDHEN_CONTACT_EMAIL_FIELD}[LANGUAGE_NONE][] = array(
'value' => $email,
'default' => $default,
'bulk' => $bulk,
'hold' => $hold,
'label_id' => $label_id,
);
}