View with paged output - how to alter number of pages?
I did it:

function MYMODULE_views_pre_execute(&amp;$view) {
  if ($view-&gt;name == 'taxonomy_term') {
    if (user_access('view all pages')) {
      $view-&gt;query-&gt;pager-&gt;options['total_pages'] = NULL;
      $query = $view-&gt;build_info['query'];
      $offset = $view-&gt;query-&gt;pager-&gt;current_page * $view-&gt;query-&gt;limit;
      $query-&gt;range($offset, $view-&gt;query-&gt;limit);
    }
  }
}