function views_handler_area::options_form

Same name in other branches
  1. 7.x-3.x handlers/views_handler_area.inc \views_handler_area::options_form()

Default options form that provides the label widget that all fields should have.

Overrides views_handler::options_form

1 call to views_handler_area::options_form()
views_handler_area_text::options_form in handlers/views_handler_area_text.inc
Default options form that provides the label widget that all fields should have.
2 methods override views_handler_area::options_form()
views_handler_area_broken::options_form in handlers/views_handler_area.inc
Default options form that provides the label widget that all fields should have.
views_handler_area_text::options_form in handlers/views_handler_area_text.inc
Default options form that provides the label widget that all fields should have.

File

handlers/views_handler_area.inc, line 45

Class

views_handler_area

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,
        );
    }
}