You are here

function redhen_contact_rules_condition_exists_by_email in RedHen CRM 7

Rules condition: contact exists by email address.

1 string reference to 'redhen_contact_rules_condition_exists_by_email'
redhen_contact_rules_condition_info in modules/redhen_contact/includes/redhen_contact.rules.inc
Implements hook_rules_condition_info().

File

modules/redhen_contact/includes/redhen_contact.rules.inc, line 71
Rules integration for RedHen Contacts.

Code

function redhen_contact_rules_condition_exists_by_email($mail) {
  $contacts = redhen_contact_load_by_mail($mail);
  return is_array($contacts);
}