You are here

function field_timer_field_formatter_view in Field Timer 7

Same name and namespace in other branches
  1. 7.2 field_timer.module \field_timer_field_formatter_view()

Implements hook_field_formatter_view().

File

./field_timer.module, line 205
Main module file.

Code

function field_timer_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  module_load_include('inc', 'field_timer', 'includes/field_timer');
  $settings = $display['settings'];
  switch ($display['type']) {
    case 'field_timer_text':
      return _field_timer_text_formatter($items, $settings);
    case 'field_timer_county':
      return _field_timer_county_formatter($items, $settings, $entity_type, $entity, $instance);
    case 'field_timer_jquery_countdown':
      return _field_timer_jquery_countdown_formatter($items, $settings, $entity_type, $entity, $instance);
    case 'field_timer_jquery_countdown_led':
      return _field_timer_jquery_countdown_led_formatter($items, $settings, $entity_type, $entity, $instance);
  }
}