You are here

function redhen_org_load_multiple in RedHen CRM 7

Loads multiple orgs by ID or based on a set of matching conditions.

Parameters

array $org_ids: An array of org IDs.

array $conditions: An array of conditions on the {redhen_org} table in the form 'field' => $value.

bool $reset: Whether to reset the internal org loading cache.

Return value

array An array of org objects indexed by org_id.

See also

entity_load()

4 calls to redhen_org_load_multiple()
redhen_org_group_contact_groups in modules/redhen_org_group/redhen_org_group.module
Return all redhen_org groups that a given user belongs to.
redhen_org_load in modules/redhen_org/redhen_org.module
Loads an org by ID.
redhen_org_page in modules/redhen_org/includes/redhen_org.pages.inc
Page callback for org overview page.
_redhen_org_autocomplete in modules/redhen_org/includes/redhen_org.pages.inc
Autocomplete helper

File

modules/redhen_org/redhen_org.module, line 353

Code

function redhen_org_load_multiple($org_ids = array(), $conditions = array(), $reset = FALSE) {
  if (empty($org_ids) && empty($conditions)) {
    return array();
  }
  return entity_load_multiple_by_name('redhen_org', $org_ids, $conditions, $reset);
}