/ Published in: PHP
                    
                                        
Use the following module code to add a Show parameter to your URL.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
/**
* Implements hook_views_pre_execute().
*
* This allows us to adjust the number of rows to present, and to add the pager
* count display functionality.
*
* @param stdClass $view The view to alter.
*/
function YOURMODULEHERE_views_pre_execute(&$view) {
$show = $_GET['show'];
if( $show == 'all' ) $show = 0;
{
$view->pager['items_per_page'] = $show;
$view->handler->options['items_per_page'] = $show;
}
}
?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                