function bynder_generate_pager in Bynder 7
Generate paging functionality.
1 call to bynder_generate_pager()
- bynder_generate_search in includes/
bynder.browser.inc - Generate search page.
File
- includes/
bynder.browser.inc, line 794 - Manages the Bynder media browser functionality
Code
function bynder_generate_pager($num_results, $element = 0, $parameters = array()) {
if (isset($_POST['search'])) {
$_GET['search'] = filter_xss(check_plain($_POST['search']));
}
pager_default_initialize($num_results, BYNDER_SEARCH_PAGE_SIZE, $element);
return array(
'#markup' => theme('pager', array(
'parameters' => $parameters,
'element' => $element,
)),
);
}