You are here

function redhen_org_group_content_access in RedHen CRM 7

Access callback for the group content page.

Parameters

$org: The organization that may have group content.

1 string reference to 'redhen_org_group_content_access'
redhen_org_group_menu in modules/redhen_org_group/redhen_org_group.module
Implements hook_menu().

File

modules/redhen_org_group/redhen_org_group.module, line 115

Code

function redhen_org_group_content_access($org) {
  global $user;
  $user_groups = redhen_org_group_contact_groups($user, FALSE, NULL, TRUE);
  if (array_key_exists($org->org_id, $user_groups)) {
    return TRUE;
  }
  return FALSE;
}