You are here

function bat_event_field_formatter_view in Booking and Availability Management Tools for Drupal 7

Implements hook_field_formatter_view().

File

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

Code

function bat_event_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $element = array();
  foreach ($items as $delta => $item) {
    $state = bat_event_load_state($item['state_id']);
    $element[] = array(
      '#markup' => $state['label'],
    );
  }
  return $element;
}