You are here

function date_views_preprocess_views_view in Date 7.2

Same name and namespace in other branches
  1. 8 date_views/theme/theme.inc \date_views_preprocess_views_view()
  2. 7.3 date_views/theme/theme.inc \date_views_preprocess_views_view()

Jump in and move the pager.

File

date_views/theme/theme.inc, line 11
Theme files for Date Pager.

Code

function date_views_preprocess_views_view(&$vars) {
  $view = $vars['view'];
  if (!empty($view->date_info) && !empty($view->date_info->date_pager_position)) {
    switch ($view->date_info->date_pager_position) {
      case 'top':
        $vars['header'] .= $vars['pager'];
        $vars['pager'] = '';
        break;
      case 'both':
        $vars['header'] .= $vars['pager'];
        break;
    }
  }
}