As it turns out this is quite simple.
I used hook_views_pre_build() to do this:
/** * Implements hook_views_pre_build () */ function MODULENAME_views_pre_build(&$view) { if($view->name == "name_of_your_view") { $view->items_per_page = 30; } }
This is a personal blogspot with solutions I found while developing with Drupal 7. I created this blog for personal reference but feel free to learn from my 'mistakes' and comment to ask questions or add better solutions.
/** * Implements hook_views_pre_build () */ function MODULENAME_views_pre_build(&$view) { if($view->name == "name_of_your_view") { $view->items_per_page = 30; } }