From 0af698606f32a4fbee1d654dd8fe9135886888e9 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 7 Aug 2008 16:36:00 +0000 Subject: Adjusted list_entities_from_annotations to hide the gallery view by default git-svn-id: https://code.elgg.org/elgg/trunk@1769 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 6fd088516..87c9d330f 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -450,9 +450,10 @@ * @param int $group_guid Group container. Currently this is only supported if $entity_type == 'object' * @param boolean $asc Whether to list in ascending or descending order (default: desc) * @param boolean $fullview Whether to display the entities in full + * @param boolean $viewtypetoggle Determines whether or not the 'gallery' view can be displayed (default: no) * @return string Formatted entity list */ - function list_entities_from_annotations($entity_type = "", $entity_subtype = "", $name = "", $value = "", $limit = 10, $owner_guid = 0, $group_guid = 0, $asc = false, $fullview = true) { + function list_entities_from_annotations($entity_type = "", $entity_subtype = "", $name = "", $value = "", $limit = 10, $owner_guid = 0, $group_guid = 0, $asc = false, $fullview = true, $viewtypetoggle = false) { if ($asc) { $asc = "asc"; @@ -463,7 +464,7 @@ $offset = (int) get_input("offset",0); $entities = get_entities_from_annotations($entity_type, $entity_subtype, $name, $value, $owner_guid, $group_guid, $limit, $offset, $asc); - return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview); + return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle); } -- cgit v1.2.3