You are here

function _field_timer_text_settings_form in Field Timer 7

Help function.

Build settings form for field_timer_text formatter.

1 call to _field_timer_text_settings_form()
field_timer_field_formatter_settings_form in ./field_timer.module
Implements hook_field_formatter_settings_form().

File

includes/field_timer.inc, line 386
Contains some help functions for formatters and settings forms.

Code

function _field_timer_text_settings_form($settings) {
  $settings_form = array();
  $settings_form['type'] = array(
    '#type' => 'select',
    '#title' => t('Type'),
    '#options' => array(
      'auto' => t('Auto'),
      'timer' => t('Timer'),
      'countdown' => t('Countdown'),
    ),
    '#default_value' => $settings['type'],
  );
  $settings_form['granularity'] = array(
    '#type' => 'select',
    '#title' => t('Granularity'),
    '#options' => range(0, 7),
    '#default_value' => $settings['granularity'],
  );
  return $settings_form;
}