You are here

public function BatType::getEventValueFormatter in Booking and Availability Management Tools for Drupal 7

Parameters

string $event_type:

Return value

string|false

File

modules/bat_unit/bat_unit.module, line 1961

Class

BatType
The class used for Bat Type entities.

Code

public function getEventValueFormatter($event_type) {
  if ($field = $this
    ->getEventValueDefaultField($event_type)) {
    $field_info_instance = field_info_instance('bat_type', $field, $this->type);
    if (isset($field_info_instance['display']['default']['type'])) {
      return $field_info_instance['display']['default']['type'];
    }
  }
  return FALSE;
}