1 views_handler_area_view.inc views_handler_area_view::options_form(&$form, &$form_state)

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

Overrides views_handler_area::options_form

File

core/modules/views/handlers/views_handler_area_view.inc, line 26
Definition of views_handler_area_view.

Class

views_handler_area_view
Views area handlers. Insert a view inside of an area.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  $view_display = $this->view->name . ':' . $this->view->current_display;

  $options = array('' => t('-Select-'));
  $options += views_get_views_as_options(FALSE, 'all', $view_display, FALSE, TRUE);
  $form['view_to_insert'] = array(
    '#type' => 'select',
    '#title' => t('View to insert'),
    '#default_value' => $this->options['view_to_insert'],
    '#description' => t('The view to insert into this area.'),
    '#options' => $options,
  );

  $form['inherit_arguments'] = array(
    '#type' => 'checkbox',
    '#title' => t('Inherit contextual filters'),
    '#default_value' => $this->options['inherit_arguments'],
    '#description' => t('If checked, this view will receive the same contextual filters as its parent.'),
  );
}