function slide_with_style_field_widget_info in Select with Style 7
Implements hook_field_widget_info().
File
- slide_with_style/
slide_with_style.module, line 43 - Defines a slider RANGE widget to create filters for numeric and list fields.
Code
function slide_with_style_field_widget_info() {
// @todo dynamically build list types, including contrib modules
$number_types = array(
'number_decimal',
'number_float',
'number_integer',
);
$list_types = array(
'list_text',
'list_integer',
'list_float',
);
$widget_info = array(
'slide_with_style_slider' => array(
'label' => t('Slider'),
'field types' => array_merge($number_types, $list_types),
'settings' => array(
'step' => 1,
'appearance' => array(
'with_textfield' => 'with_textfield',
'with_bubble' => 'with_bubble',
),
'css file' => '',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_DEFAULT,
),
),
);
return $widget_info;
}