You are here

public function RedhenGroupSelectionHandler::validateReferencableEntities in RedHen CRM 7

Validate that entities can be referenced by this field.

Return value

array An array of entity ids that are valid.

Overrides EntityReference_SelectionHandler::validateReferencableEntities

File

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

Class

RedhenGroupSelectionHandler
RedHenGroup selection handler.

Code

public function validateReferencableEntities(array $ids) {
  $ids = array();
  foreach ($this
    ->getContactGroups() as $org_id => $org) {
    $ids[] = $org_id;
  }
  return $ids;
}