You are here

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

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

Provide the default form for setting options.

Overrides views_plugin::options_form

File

plugins/views_plugin_pager_some.inc, line 27

Class

views_plugin_pager_some
Plugin for views without pagers.

Code

function options_form(&$form, &$form_state) {
  $form['items_per_page'] = array(
    '#title' => t('Items to display'),
    '#type' => 'textfield',
    '#description' => t('The number of items to display per page.'),
    '#default_value' => $this->options['items_per_page'],
  );
  $form['offset'] = array(
    '#type' => 'textfield',
    '#title' => t('Offset'),
    '#description' => t('The number of items to skip. For example, if this field is 3, the first 3 items will be skipped and not displayed.'),
    '#default_value' => $this->options['offset'],
  );
}