1 views_handler_area.inc | views_handler_area::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler::options_form
File
- core/
modules/ views/ handlers/ views_handler_area.inc, line 66 - Views area handlers.
Class
- views_handler_area
- Base class for area handlers.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['label'] = array(
'#type' => 'textfield',
'#title' => t('Label'),
'#default_value' => isset($this->options['label']) ? $this->options['label'] : '',
'#description' => t('The label for this area that will be displayed only administratively.'),
);
if ($form_state['type'] != 'empty') {
$form['empty'] = array(
'#type' => 'checkbox',
'#title' => t('Display even if view has no result'),
'#default_value' => isset($this->options['empty']) ? $this->options['empty'] : 0,
);
}
}