'#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'],
);
$form['id']=array(
'#type'=>'number',
'#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."),
'#default_value'=>$this->options['id'],
);
$form['total_pages']=array(
'#type'=>'number',
'#title'=>t('Number of pages'),
'#description'=>t('The total number of pages. Leave empty to show all pages.'),
'#default_value'=>$this->options['total_pages'],
);
$form['quantity']=array(
'#type'=>'number',
...
...
@@ -103,188 +52,34 @@ public function buildOptionsForm(&$form, &$form_state) {
form_set_error('pager_options][expose][items_per_page_options',t('Please insert a list of integer numeric values separated by commas: e.g: 10, 20, 50, 100'));
}
// Take sure that the items_per_page is part of the expose settings.
'#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'],
);
$form['id']=array(
'#type'=>'number',
'#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."),
'#default_value'=>$this->options['id'],
);
$form['total_pages']=array(
'#type'=>'number',
'#title'=>t('Number of pages'),
'#description'=>t('The total number of pages. Leave empty to show all pages.'),