From 248dc6d36604fa30f10dc5e2e2cc43bc73ff1525 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 14 Dec 2009 12:56:59 +0000 Subject: closes #1277 - display_tagcloud() now has same parameters as get_tags() git-svn-id: http://code.elgg.org/elgg/trunk@3758 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/tags.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/lib/tags.php b/engine/lib/tags.php index 77db25348..6f0caf8af 100644 --- a/engine/lib/tags.php +++ b/engine/lib/tags.php @@ -173,9 +173,13 @@ function get_tags($threshold = 1, $limit = 10, $metadata_name = "", $entity_type * @param string $entity_subtype The entity subtype, optionally * @param int $owner_guid The GUID of the tags owner, optionally * @param int $site_guid Optionally, the site to restrict to (default is the current site) + * @param int $start_ts Optionally specify a start timestamp for tags used to generate cloud. + * @param int $ent_ts Optionally specify an end timestamp for tags used to generate cloud. * @return string THe HTML (or other, depending on view type) of the tagcloud. */ -function display_tagcloud($threshold = 1, $limit = 10, $metadata_name = "", $entity_type = "object", $entity_subtype = "", $owner_guid = "", $site_guid = -1) { - return elgg_view("output/tagcloud",array('value' => get_tags($threshold, $limit, $metadata_name, $entity_type, $entity_subtype, $owner_guid, $site_guid),'object' => $entity_type, 'subtype' => $entity_subtype)); +function display_tagcloud($threshold = 1, $limit = 10, $metadata_name = "", $entity_type = "object", $entity_subtype = "", $owner_guid = "", $site_guid = -1, $start_ts = "", $end_ts = "") { + return elgg_view("output/tagcloud",array('value' => get_tags($threshold, $limit, $metadata_name, $entity_type, $entity_subtype, $owner_guid, $site_guid, $start_ts, $end_ts), + 'object' => $entity_type, + 'subtype' => $entity_subtype)); } \ No newline at end of file -- cgit v1.2.3