You are here

function field_timer_field_formatter_settings_summary in Field Timer 7

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

Implements hook_field_formatter_settings_summary().

File

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

Code

function field_timer_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  module_load_include('inc', 'field_timer', 'includes/field_timer');
  switch ($display['type']) {
    case 'field_timer_text':
      return _field_timer_text_summary($settings);
    case 'field_timer_county':
      return _field_timer_county_summary($settings);
    case 'field_timer_jquery_countdown':
      return _field_timer_jquery_countdown_summary($settings);
    case 'field_timer_jquery_countdown_led':
      return _field_timer_jquery_countdown_led_summary($settings);
  }
}