Commit 2ee19810 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Convert pager settings to use number element

parent 5d668a46
...@@ -73,34 +73,34 @@ function options_form(&$form, &$form_state) { ...@@ -73,34 +73,34 @@ function options_form(&$form, &$form_state) {
$pager_text = $this->display->handler->get_pager_text(); $pager_text = $this->display->handler->get_pager_text();
$form['items_per_page'] = array( $form['items_per_page'] = array(
'#title' => $pager_text['items per page title'], '#title' => $pager_text['items per page title'],
'#type' => 'textfield', '#type' => 'number',
'#description' => $pager_text['items per page description'], '#description' => $pager_text['items per page description'],
'#default_value' => $this->options['items_per_page'], '#default_value' => $this->options['items_per_page'],
); );
$form['offset'] = array( $form['offset'] = array(
'#type' => 'textfield', '#type' => 'number',
'#title' => t('Offset'), '#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.'), '#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'], '#default_value' => $this->options['offset'],
); );
$form['id'] = array( $form['id'] = array(
'#type' => 'textfield', '#type' => 'number',
'#title' => t('Pager ID'), '#title' => t('Pager ID'),
'#description' => t("Unless you're experiencing problems with pagers related to this view, you should leave this at 0. If using multiple pagers on one page you may need to set this number to a higher value so as not to conflict within the ?page= array. Large values will add a lot of commas to your URLs, so avoid if possible."), '#description' => t("Unless you're experiencing problems with pagers related to this view, you should leave this at 0. If using multiple pagers on one page you may need to set this number to a higher value so as not to conflict within the ?page= array. Large values will add a lot of commas to your URLs, so avoid if possible."),
'#default_value' => $this->options['id'], '#default_value' => $this->options['id'],
); );
$form['total_pages'] = array( $form['total_pages'] = array(
'#type' => 'textfield', '#type' => 'number',
'#title' => t('Number of pages'), '#title' => t('Number of pages'),
'#description' => t('The total number of pages. Leave empty to show all pages.'), '#description' => t('The total number of pages. Leave empty to show all pages.'),
'#default_value' => $this->options['total_pages'], '#default_value' => $this->options['total_pages'],
); );
$form['quantity'] = array( $form['quantity'] = array(
'#type' => 'textfield', '#type' => 'number',
'#title' => t('Number of pager links visible'), '#title' => t('Number of pager links visible'),
'#description' => t('Specify the number of links to pages to display in the pager.'), '#description' => t('Specify the number of links to pages to display in the pager.'),
'#default_value' => $this->options['quantity'], '#default_value' => $this->options['quantity'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment