function apachesolr_search_pager_find_page in Apache Solr Search 6.3
Backport of pager_find_page from Drupal 7.
1 call to apachesolr_search_pager_find_page()
- apachesolr_search_pager_default_initialize in ./
apachesolr_search.module - Backport of pager_default_initialize from Drupal 7.
File
- ./
apachesolr_search.module, line 1884 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_pager_find_page($element = 0) {
$page = isset($_GET['page']) ? $_GET['page'] : '';
$page_array = explode(',', $page);
if (!isset($page_array[$element])) {
$page_array[$element] = 0;
}
return (int) $page_array[$element];
}