Drupal render Views pager from $view object


/ Published in: PHP
Save to your folder(s)

Drupal 6

Do this after $view->execute() has already been called


Copy this code and paste it in your HTML
  1. $pager_type = ($view->pager['use_pager'] === 'mini' ? 'views_mini_pager' : 'pager');
  2. $pager_theme = views_theme_functions($pager_type, $view, $view->display_handler->display);
  3. $pager = theme($pager_theme, NULL, $view->pager['items_per_page'], $view->pager['element']);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.