serundeputy's picture

I have a page callback that loads up view with views_get_view_results($view_name) that loads the results just fine and I have what I need for display, but I can not figure out how to load the pager data so I can put pagination onto the page and detect when there are previous and next pages.

I'd like to have access to items_per_page, current_page, total_items which are all defined in the views_plugin_pager class.

If I load the view with views_get_view($view_name) it loads the view object un-executed and calling $viewObj->current_page(), for example just returns NULL.

Any help would be appreciated.