You are here

public function OaTeams_SelectionHandler::countReferencableEntities in Open Atrium Core 7.2

Implements EntityReferenceHandler::countReferencableEntities().

Overrides EntityReference_SelectionHandler::countReferencableEntities

File

modules/oa_teams/plugins/entityreference_selection/OaTeams_SelectionHandler.class.php, line 62
Contains the OaTeams_SelectionHandler class.

Class

OaTeams_SelectionHandler
An EntityReference selection plugin for Open Atrium Teams.

Code

public function countReferencableEntities($match = NULL, $match_operator = 'CONTAINS') {
  $options = $this
    ->getReferencableEntities();
  return count($options['node']);
}