function redhen_contact_load_multiple in RedHen CRM 7
Loads multiple contacts by ID or based on a set of matching conditions.
Parameters
array $contact_ids: An array of contact IDs.
array $conditions: An array of conditions on the {redhen_contact} table in the form 'field' => $value.
bool $reset: Whether to reset the internal contact loading cache.
Return value
array An array of contact objects indexed by contact_id.
See also
5 calls to redhen_contact_load_multiple()
- redhen_contact_load in modules/
redhen_contact/ redhen_contact.module - Loads a contact by ID.
- redhen_contact_load_by_mail in modules/
redhen_contact/ redhen_contact.module - Load all contact entities for an email address.
- redhen_contact_load_by_user in modules/
redhen_contact/ redhen_contact.module - Load a contact record from a user account.
- redhen_contact_page in modules/
redhen_contact/ includes/ redhen_contact.pages.inc - Page callback for contact overview page.
- redhen_dedupe_merge_form in modules/
redhen_dedupe/ includes/ redhen_dedupe.form.inc - Form to select the master contact.
File
- modules/
redhen_contact/ redhen_contact.module, line 396 - Module file for RedHen contacts.
Code
function redhen_contact_load_multiple($contact_ids = array(), $conditions = array(), $reset = FALSE) {
if (empty($contact_ids) && empty($conditions)) {
return array();
}
return entity_load('redhen_contact', $contact_ids, $conditions, $reset);
}