function views_plugin_pager_some::options_form

3.x 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

plugins/views_plugin_pager_some.inc, line 32
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' => 'textfield',
    '#description' => $pager_text['items per page description'],
    '#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'],
  );
}