function views_handler_field_boolean::options_form
Same name in other branches
- 7.x-3.x handlers/views_handler_field_boolean.inc \views_handler_field_boolean::options_form()
Overrides views_handler_field::options_form
File
-
handlers/
views_handler_field_boolean.inc, line 42
Class
- views_handler_field_boolean
- A handler to provide proper displays for booleans.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
foreach ($this->formats as $key => $item) {
$options[$key] = implode('/', $item);
}
$form['type'] = array(
'#type' => 'select',
'#title' => t('Output format'),
'#options' => $options,
'#default_value' => $this->options['type'],
);
$form['not'] = array(
'#type' => 'checkbox',
'#title' => t('Reverse'),
'#description' => t('If checked, true will be displayed as false.'),
'#default_value' => $this->options['not'],
);
}