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

Provide a form to edit options for this plugin.

Overrides views_plugin_style::options_form


core/modules/views/plugins/views_plugin_style_summary_jump_menu.inc, line 37
Contains the default summary style plugin, which displays items in an HTML list.


The default style plugin for summaries.


function options_form(&$form, &$form_state) {
  $form['base_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Base path'),
    '#default_value' => $this->options['base_path'],
    '#description' => t('Define the base path for links in this summary
        view, i.e. http://example.com/<strong>your_view_path/archive</strong>.
        Do not include beginning and ending forward slash. If this value
        is empty, views will use the first path found as the base path,
        in page displays, or / if no path could be found.'),
  $form['count'] = array(
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['count']),
    '#title' => t('Display record count with link'),

  $form['hide'] = array(
    '#type' => 'checkbox',
    '#title' => t('Hide the "Go" button'),
    '#default_value' => !empty($this->options['hide']),
    '#description' => t('If hidden, this button will only be hidden for users with javascript and the page will automatically jump when the select is changed.'),

  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Button text'),
    '#default_value' => $this->options['text'],

  $form['label'] = array(
    '#type' => 'textfield',
    '#title' => t('Selector label'),
    '#default_value' => $this->options['label'],
    '#description' => t('The text that will appear as the the label of the selector element. If blank no label tag will be used.'),

  $form['choose'] = array(
    '#type' => 'textfield',
    '#title' => t('Choose text'),
    '#default_value' => $this->options['choose'],
    '#description' => t('The text that will appear as the selected option in the jump menu.'),

  $form['inline'] = array(
    '#type' => 'checkbox',
    '#title' => t('Set this field to display inline'),
    '#default_value' => !empty($this->options['inline']),

  $form['default_value'] = array(
    '#type' => 'checkbox',
    '#title' => t('Select the current contextual filter value'),
    '#default_value' => !empty($this->options['default_value']),
    '#description' => t('If checked, the current contextual filter value will be displayed as the default option in the jump menu, if applicable.'),