You are here

function field_timer_field_formatter_view in Field Timer 7.2

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

Implements hook_field_formatter_view().

File

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

Code

function field_timer_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $class = $display['type'] . '_' . $field['type'];
  $handler = new $class();
  return $handler
    ->renderItems($entity_type, $entity, $field, $instance, $langcode, $items, $display);
}