function theme_cmis_query_pager in CMIS API 6.2
Theme function for query result pager
1 theme call to theme_cmis_query_pager()
- cmis_query_view in cmis_query/
cmis_query.pages.inc - Implementation of hook_view()
File
- cmis_query/
cmis_query.theme.inc, line 19
Code
function theme_cmis_query_pager($query, $p) {
$base_search_url = 'cmis/query/' . urlencode($query) . '/';
$next_p = $p + 1;
$prev_p = $p - 1;
$contents .= '<div class="pagination">';
if ($p != 1) {
$contents .= l(t('Prev'), $base_search_url . $prev_p);
}
// Check to see if it has next
$contents .= l(t('Next'), $base_search_url . $next_p);
return $contents;
}