diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 16:36:00 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 16:36:00 +0000 |
commit | 0af698606f32a4fbee1d654dd8fe9135886888e9 (patch) | |
tree | e331c3721d9ba1fb2e444a2d4d22358911d50ed2 | |
parent | c7aa2106a1701a4cf588bc7ff390ea384c4ca506 (diff) | |
download | elgg-0af698606f32a4fbee1d654dd8fe9135886888e9.tar.gz elgg-0af698606f32a4fbee1d654dd8fe9135886888e9.tar.bz2 |
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
-rw-r--r-- | engine/lib/annotations.php | 5 |
1 files 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);
}
|