public function field_timer_county_base::getSettingsForm in Field Timer 7.2
@inheritdoc
Overrides field_timer_formatter_interface::getSettingsForm
1 call to field_timer_county_base::getSettingsForm()
- field_timer_county_date_field_base::getSettingsForm in includes/
field_timer_county.inc - @inheritdoc
1 method overrides field_timer_county_base::getSettingsForm()
- field_timer_county_date_field_base::getSettingsForm in includes/
field_timer_county.inc - @inheritdoc
File
- includes/
field_timer_county.inc, line 74 - Help file. Contains help classes to perform field_timer_county formatter related actions.
Class
- field_timer_county_base
- Base class for field_timer_county formatter.
Code
public function getSettingsForm($settings, $field) {
$settings_form = array();
$settings_form['animation'] = array(
'#type' => 'select',
'#title' => t('Animation'),
'#options' => $this
->formatterAnimations(),
'#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' => $this
->formatterThemes(),
'#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'],
'#attributes' => array(
'class' => array(
'field-timer-county-reflection',
),
),
);
$settings_form['reflectionOpacity'] = array(
'#type' => 'textfield',
'#title' => t('Reflection opacity'),
'#default_value' => $settings['reflectionOpacity'],
'#description' => t('Float value between 0 and 1.'),
'#states' => array(
'invisible' => array(
'input.field-timer-county-reflection' => array(
'checked' => FALSE,
),
),
),
);
return $settings_form;
}