How do I limit the number of Views results on specific pages?
This works for me:

function MYMODULE_views_pre_build(&amp;$view) {
  if ($view-&gt;name == 'view_name') {
    $view-&gt;items_per_page = 5;
  }
}