-
-
Save modcab/661bdcb2a590614c87cd5ffc3af96ef5 to your computer and use it in GitHub Desktop.
Drupal Views change items per page programmatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_views_pre_build () | |
*/ | |
function MODULENAME_views_pre_build(&$view) { | |
if($view->name == "VIEWNAME") { | |
$view->items_per_page = 15; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment