You are here

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

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

Provide a form to edit options for this plugin.

Overrides views_plugin_style::options_form

1 call to views_plugin_style_summary::options_form()
views_plugin_style_summary_unformatted::options_form in plugins/views_plugin_style_summary_unformatted.inc
Provide a form to edit options for this plugin.
1 method overrides views_plugin_style_summary::options_form()
views_plugin_style_summary_unformatted::options_form in plugins/views_plugin_style_summary_unformatted.inc
Provide a form to edit options for this plugin.

File

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

Class

views_plugin_style_summary
The default style plugin for summaries.

Code

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['override'] = array(
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['override']),
    '#title' => t('Override number of items to display'),
  );
  $form['items_per_page'] = array(
    '#type' => 'textfield',
    '#title' => t('Items to display'),
    '#default_value' => $this->options['items_per_page'],
    '#process' => array(
      'views_process_dependency',
    ),
    '#dependency' => array(
      'edit-style-options-override' => array(
        TRUE,
      ),
    ),
  );
}