aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 11:32:08 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 11:32:08 +0000
commit9c3cfc97df8c91965fcec4ae380623cbcd74b150 (patch)
tree202be3f4c186a8bc2ae4b527db03c67b05e6ec1b /engine/lib/elgglib.php
parent7f394b2d9048bba8f44af222a6a42ac09f323680 (diff)
downloadelgg-9c3cfc97df8c91965fcec4ae380623cbcd74b150.tar.gz
elgg-9c3cfc97df8c91965fcec4ae380623cbcd74b150.tar.bz2
Hidden viewtype toggle on search.
git-svn-id: https://code.elgg.org/elgg/trunk@1679 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 8fc1b3da9..6d61dfb9e 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -467,10 +467,10 @@
* @param int $offset The current indexing offset
* @param int $limit The number of entities to display per page
* @param true|false $fullview Whether or not to display the full view (default: true)
- * @param string $viewtype "list" or "gallery" for search pages only (default: "list")
+ * @param true|false $viewtypetoggle Whether or not to allow users to toggle to gallery view
* @return string The list of entities
*/
- function elgg_view_entity_list($entities, $count, $offset, $limit, $fullview = true, $viewtype = "list") {
+ function elgg_view_entity_list($entities, $count, $offset, $limit, $fullview = true, $viewtypetoggle = true) {
$count = (int) $count;
$offset = (int) $offset;
@@ -486,6 +486,7 @@
'baseurl' => $_SERVER['REQUEST_URI'],
'fullview' => $fullview,
'context' => $context,
+ 'viewtypetoggle' => $viewtypetoggle,
'viewtype' => get_input('search_viewtype','list'),
));