1 views_handler_field_prerender_list.inc | views_handler_field_prerender_list::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- core/
modules/ views/ handlers/ views_handler_field_prerender_list.inc, line 37 - Definition of views_handler_field_prerender_list.
Class
- views_handler_field_prerender_list
- Field handler to provide a list of items.
Code
function options_form(&$form, &$form_state) {
$form['type'] = array(
'#type' => 'radios',
'#title' => t('Display type'),
'#options' => array(
'ul' => t('Unordered list'),
'ol' => t('Ordered list'),
'separator' => t('Simple separator'),
),
'#default_value' => $this->options['type'],
);
$form['separator'] = array(
'#type' => 'textfield',
'#title' => t('Separator'),
'#default_value' => $this->options['separator'],
'#states' => array(
'visible' => array(
':input[name="options[type]"]' => array('value' => 'separator'),
),
),
);
parent::options_form($form, $form_state);
}