You are here

public function PagererViewsPagerPlugin::options_form in Pagerer 7

Provide the form for setting options.

Same as parent, plus preset, less tags.

Overrides views_plugin_pager_full::options_form

File

plugins/pagerer.views.pager.inc, line 65
Pagerer - Definition of the Views pager plugin.

Class

PagererViewsPagerPlugin
Pagerer pager plugin handler class.

Code

public function options_form(&$form, &$form_state) {
  $preset_options = _pagerer_list_presets();
  $form['preset'] = array(
    '#type' => 'select',
    '#title' => t('Preset'),
    '#description' => t("Select the Pagerer preset to use to render the pager, or 'Use Drupal core pager'."),
    '#options' => $preset_options,
    '#default_value' => $this->options['preset'],
  );
  parent::options_form($form, $form_state);
  unset($form['tags'], $form['quantity']);
}