I just created a custom pager that automatically jumps to the last page, and I think this is due to what you are trying to do:
In project.info:
files[] = plugins/views_plugin_pager_last.inc
In project.module:
function cvoxm_views_plugins(){ return array( 'pager' => array( 'last' => array( 'title' => t('Paged output, full pager and last by default'), 'short title' => t('Full & Last'), 'help' => t('Paged output, full Drupal style and last by default'), 'handler' => 'views_plugin_pager_last', 'help topic' => 'pager-last', 'uses options' => TRUE, ), ) ); }
And the contents of the plugins / views _plugin_pager_last.inc:
class views_plugin_pager_last extends views_plugin_pager_full { function pre_execute(&$query) { if(!isset($_GET['page'])){
source share