function views_handler_area_view::options_form

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

Overrides views_handler_area::options_form

File

handlers/views_handler_area_view.inc, line 29

Class

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

Code

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