]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
closes #1277 - display_tagcloud() now has same parameters as get_tags()
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Dec 2009 12:56:59 +0000 (12:56 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Dec 2009 12:56:59 +0000 (12:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3758 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/tags.php

index 77db25348c24505d48baa268b6507b2f83840587..6f0caf8af44e39d07459d55f85a788256086502f 100644 (file)
@@ -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