You are here

function views_plugin_pager_infinite_scroll::options_form in Views Infinite Scroll 7

Same name and namespace in other branches
  1. 7.2 views_plugin_pager_infinite_scroll.inc \views_plugin_pager_infinite_scroll::options_form()

Provide the default form for setting options.

Overrides views_plugin_pager_full::options_form

File

./views_plugin_pager_infinite_scroll.inc, line 23

Class

views_plugin_pager_infinite_scroll
The plugin to handle full pager.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['manual_load'] = array(
    '#type' => 'checkbox',
    '#title' => t('Load subsequent pages manually instead of automatically'),
    '#description' => t('When checked, use a link to trigger loading of subsequent pages instead of window scroll.'),
    '#default_value' => $this->options['manual_load'],
    '#weight' => -10,
  );
  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Manual load label'),
    '#required' => FALSE,
    '#description' => t('Label to use on the manual link.'),
    '#default_value' => $this->options['text'],
    '#process' => array(
      'ctools_dependent_process',
    ),
    '#dependency' => array(
      'edit-pager-options-manual-load' => array(
        1,
      ),
    ),
    '#weight' => -10,
  );
}