You are here

function _field_timer_county_settings_form in Field Timer 7

Help function.

Build settings form for field_timer_county formatter.

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

File

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

Code

function _field_timer_county_settings_form($settings) {
  $settings_form = array();
  $settings_form['animation'] = array(
    '#type' => 'select',
    '#title' => t('Animation'),
    '#options' => array(
      'fade' => t('Fade'),
      'scroll' => t('Scroll'),
    ),
    '#default_value' => $settings['animation'],
  );
  $settings_form['speed'] = array(
    '#type' => 'textfield',
    '#title' => t('Speed'),
    '#default_value' => $settings['speed'],
  );
  $settings_form['county_theme'] = array(
    '#type' => 'select',
    '#title' => t('Theme'),
    '#options' => array(
      'black' => t('Black'),
      'gray' => t('Gray'),
      'red' => t('Red'),
      'blue' => t('Blue'),
    ),
    '#default_value' => $settings['county_theme'],
  );
  $settings_form['background'] = array(
    '#type' => 'textfield',
    '#title' => t('Background'),
    '#default_value' => $settings['background'],
    '#description' => t("Data from this field will be added to css property 'background'."),
  );
  $settings_form['reflection'] = array(
    '#type' => 'checkbox',
    '#title' => t('Add reflection'),
    '#default_value' => $settings['reflection'],
  );
  $settings_form['reflectionOpacity'] = array(
    '#type' => 'textfield',
    '#title' => t('Reflection opacity'),
    '#default_value' => $settings['reflectionOpacity'],
    '#description' => t('Float value between 0 and 1.'),
  );
  return $settings_form;
}