views pass argument for number of records to display to pager contextual filter? Drupal 7.

Is it possible to pass an argument to the contextual filter to limit number of items to display in a View from the UI? 

IOW: can you pass an argument that replicates the Number Of Items portion of the Pager?

I have a node form which uses View Fields to display a view of related items. I want to pass an argument via the Field Display which limits the # of records.

If this must be done programmatically, how do I hook into the view 'contextually'... ie. so that the hook overrides the Number Of Items when the visitor is on a particular page (a Node of a certain Content Type.)
I don't think it's possible through the Views interface. But I think you could probably do it through a small custom module.

function MYMODULE_views_pre_build(&amp;$view) {
  if ($view-&gt;name == 'view_name') {
    $limit = $arg(1) //where $arg is the argument from your url
    $view-&gt;items_per_page = $limit;
  }
}