1 date.theme.inc | date_preprocess_views_view(&$variables) |
Implements template_preprocess_views_view().
Display the pager above view content, below or both.
Related topics
File
- core/
modules/ date/ date.theme.inc, line 488 - Theme and preprocess functions for output by Date module.
Code
function date_preprocess_views_view(&$variables) {
$view = $variables['view'];
if (!empty($view->date_info) && !empty($view->date_info->date_pager_position)) {
switch ($view->date_info->date_pager_position) {
case 'top':
$variables['header'] .= $variables['pager'];
$variables['pager'] = '';
break;
case 'both':
$variables['header'] .= $variables['pager'];
break;
default:
// Already on the bottom.
}
}
}