diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-14 12:56:59 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-14 12:56:59 +0000 |
commit | 248dc6d36604fa30f10dc5e2e2cc43bc73ff1525 (patch) | |
tree | 119ae5c414b7827b3ff09a4c066c114bd4cd1d5c /engine | |
parent | 59aae4df786dd2c96eeab0c896870f6fb031cf82 (diff) | |
download | elgg-248dc6d36604fa30f10dc5e2e2cc43bc73ff1525.tar.gz elgg-248dc6d36604fa30f10dc5e2e2cc43bc73ff1525.tar.bz2 |
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
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/tags.php | 8 |
1 files 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 |