Set pager none in a view programmatically
I believe you can do something like:

$view-&gt;display_handler-&gt;options['pager']['type'] = 'none';


in your function. This calls the view's display handler to set the pager type option to 'none'.