From e0f0ffe8e63ea5b849ecdddaa81948e4d7a3f11d Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Thu, 31 May 2012 13:44:42 -0300 Subject: [PATCH] updated pager function to limit pages to 10 in collection module --- islandora_basic_collection/islandora_basic_collection.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora_basic_collection/islandora_basic_collection.module b/islandora_basic_collection/islandora_basic_collection.module index 4314de6a..5dc7ea2e 100644 --- a/islandora_basic_collection/islandora_basic_collection.module +++ b/islandora_basic_collection/islandora_basic_collection.module @@ -269,7 +269,7 @@ function islandora_basic_collection_preprocess_islandora_basic_collection_wrappe $results = islandora_basic_collection_get_objects($islandora_object, $page_number, $page_size); $total_count = count($results); pager_default_initialize($total_count, $page_size); - $variables['collection_pager'] = theme('pager', array('quantity' => $total_count)); + $variables['collection_pager'] = theme('pager', array('quantity' => 10)); $display = (empty($_GET['display'])) ? 'list' : $_GET['display']; if ($display == 'grid') { $collection_content = theme('islandora_basic_collection_grid', array('islandora_object' => $islandora_object, 'collection_results' => $results));