Programmatically Change Pager "Items to Display" value? I would like to create a custom form to allow a website admin to quickly change the number of "Items to Display" for a particular block display for a particular view, but I don't have a clue how to change this value programmatically on my own, besides the views ui?
im not sure of any 3rd party module that allows easy "override the # of items per page". I've done this task a few times for View displays using core drupal apis.

Basically:


you use hook_views_pre_build to programmatically alter the view.
Use a custom variable to store your items per page value.
Make a simple admin page to allow a site administrator alter the value.


EDIT: amended to different views hook function.