function _pagerer_get_page_restriction in Pagerer 7
Return minimum number of pages to enable displaying the pager.
Parameters
array $variables: theme's variables
Return value
int minimum number of pages
2 calls to _pagerer_get_page_restriction()
- theme_pagerer in ./
pagerer.module - Pagerer multi-pane pager.
- _pagerer_theme_handler in ./
pagerer.module - Pagerer's theme handler.
File
- ./
pagerer.module, line 1747 - Pagerer
Code
function _pagerer_get_page_restriction($variables) {
static $keys;
if (!isset($keys)) {
$keys = array(
'none' => 0,
'one_above' => 1,
'default' => 2,
);
}
$k = isset($variables['display_restriction']) ? $variables['display_restriction'] : 'default';
return $keys[$k];
}