You are here

public function RedhenGroupSelectionHandler::getReferencableEntities in RedHen CRM 7

Return a list of referencable entities.

Overrides EntityReference_SelectionHandler::getReferencableEntities

1 call to RedhenGroupSelectionHandler::getReferencableEntities()
RedhenGroupSelectionHandler::validateAutocompleteInput in modules/redhen_org_group/plugins/selection/RedhenGroupSelectionHandler.class.php
Implements EntityReferenceHandler::validateAutocompleteInput().

File

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

Class

RedhenGroupSelectionHandler
RedHenGroup selection handler.

Code

public function getReferencableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0) {
  $entities = array();
  foreach ($this
    ->getContactGroups() as $org_id => $org) {
    $entities[$org->type][$org_id] = $this
      ->getLabel($org);
  }
  return $entities;
}