function views_handler_area::options_form

3.x 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

3 calls to views_handler_area::options_form()
views_handler_area_result::options_form in handlers/views_handler_area_result.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.
views_handler_area_view::options_form in handlers/views_handler_area_view.inc
Default options form that provides the label widget that all fields should have.
4 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_result::options_form in handlers/views_handler_area_result.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.
views_handler_area_view::options_form in handlers/views_handler_area_view.inc
Default options form that provides the label widget that all fields should have.

File

handlers/views_handler_area.inc, line 67
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,
    );
  }
}