You are here

function redhen_contact_load in RedHen CRM 7

Loads a contact by ID.

2 calls to redhen_contact_load()
RedhenEngagement::save in modules/redhen_engagement/lib/redhen_engagement.entity.inc
Override parent to update a contacts engagement score.
redhen_contact_user_contact in modules/redhen_contact/redhen_contact.module
Return a RedHen contact associated with a given Drupal account.

File

modules/redhen_contact/redhen_contact.module, line 371
Module file for RedHen contacts.

Code

function redhen_contact_load($contact_id) {
  if (empty($contact_id)) {
    return FALSE;
  }
  $contacts = redhen_contact_load_multiple(array(
    $contact_id,
  ), array());
  return $contacts ? reset($contacts) : FALSE;
}