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

Provide the default form for setting options.

Overrides views_plugin::options_form

File

core/modules/views/plugins/views_plugin_pager_some.inc, line 31
Definition of views_plugin_pager_some.

Class

views_plugin_pager_some
Plugin for views without pagers.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $pager_text = $this->display->handler->get_pager_text();
  $form['items_per_page'] = array(
    '#title' => $pager_text['items per page title'],
    '#type' => 'number',
    '#min' => '0',
    '#description' => $pager_text['items per page description'],
    '#default_value' => $this->options['items_per_page'],
  );

  $form['offset'] = array(
    '#type' => 'number',
    '#min' => '0',
    '#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'],
  );
}