You are here

function views_plugin_style_summary_jump_menu::options_form in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 plugins/views_plugin_style_summary_jump_menu.inc \views_plugin_style_summary_jump_menu::options_form()
  2. 7.3 plugins/views_plugin_style_summary_jump_menu.inc \views_plugin_style_summary_jump_menu::options_form()

Provide a form to edit options for this plugin.

Overrides views_plugin_style::options_form

File

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

Class

views_plugin_style_summary_jump_menu
The default style plugin for summaries.

Code

function options_form(&$form, &$form_state) {
  parent::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['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['default_value'] = array(
    '#type' => 'checkbox',
    '#title' => t('Select the current argument'),
    '#default_value' => !empty($this->options['default_value']),
    '#description' => t('If checked, the current argument setting will be displayed as the default option in the jump menu, if applicable.'),
  );
}