Posted By

jonathanpglick on 10/30/10


Tagged

drupal D6


Versions (?)

Drupal render Views pager from $view object


 / Published in: PHP
 

Drupal 6

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

  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  

You need to login to post a comment.