You are here

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

Returns the formatter that can format the event value.

Return value

string|false

File

modules/bat_event/bat_event.module, line 1163
Manage Events - Events store the EventValue of a Unit over a period of time.

Class

BatEvent
The class used for Event entities.

Code

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