function views_simple_pager::option_definition in Views Simple Pager 7
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'translatable' => TRUE/FALSE (wrap in t() on export if true),
- 'contains' => array of items this contains, with its own defaults, etc.
If contains is set, the default will be ignored and assumed to
be array()
),
Each option may have any of the following functions:
- export_option_OPTIONNAME -- Special export handling if necessary.
- translate_option_OPTIONNAME -- Special handling for translating data within the option, if necessary.
Overrides views_object::option_definition
File
- ./
views_simple_pager.views.inc, line 62 - Views plugin implementations for Views Simple Pager.
Class
- views_simple_pager
- The plugin to provide the Views Simple Pager.
Code
function option_definition() {
$options = parent::option_definition();
$options['items_per_page'] = array(
'default' => 10,
);
$options['offset'] = array(
'default' => 0,
);
$options['id'] = array(
'default' => 0,
);
$options['total_pages'] = array(
'default' => '',
);
$options['prev_label'] = array(
'default' => 'previous',
'translatable' => TRUE,
);
$options['next_label'] = array(
'default' => 'next',
'translatable' => TRUE,
);
$options['reverse_links'] = array(
'default' => FALSE,
);
return $options;
}