You are here

function redhen_org_load in RedHen CRM 7

Loads an org by ID.

1 call to redhen_org_load()
redhen_org_group_node_access_records in modules/redhen_org_group/redhen_org_group.module
Implements hook_node_access_records().

File

modules/redhen_org/redhen_org.module, line 328

Code

function redhen_org_load($org_id) {
  if (empty($org_id)) {
    return FALSE;
  }
  $orgs = redhen_org_load_multiple(array(
    $org_id,
  ), array());
  return $orgs ? reset($orgs) : FALSE;
}