You are here

protected function RedhenGroupSelectionHandler::getContactGroups in RedHen CRM 7

Return all redhen_org groups that a given user belongs to.

Return value

array Array of RedHen orgs.

3 calls to RedhenGroupSelectionHandler::getContactGroups()
RedhenGroupSelectionHandler::countReferencableEntities in modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php
Count entities that are referencable by a given field.
RedhenGroupSelectionHandler::getReferencableEntities in modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php
Return a list of referencable entities.
RedhenGroupSelectionHandler::validateReferencableEntities in modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php
Validate that entities can be referenced by this field.

File

modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php, line 48

Class

RedhenGroupSelectionHandler
RedHenGroup selection handler.

Code

protected function getContactGroups() {
  global $user;
  return redhen_org_group_contact_groups($user, FALSE, $this->instance['bundle']);
}