diff options
Diffstat (limited to 'mod/tagcloud')
-rw-r--r-- | mod/tagcloud/tagcloud.php | 8 | ||||
-rw-r--r-- | mod/tagcloud/views/default/widgets/tagcloud/view.php | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/mod/tagcloud/tagcloud.php b/mod/tagcloud/tagcloud.php index f5554ccba..ecbfc130c 100644 --- a/mod/tagcloud/tagcloud.php +++ b/mod/tagcloud/tagcloud.php @@ -7,7 +7,13 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); $title = elgg_view_title(elgg_echo('tagcloud:site:title')); -$tags = display_tagcloud(0, 100, 'tags'); + +$options = array( + 'threshold' => 0, + 'limit' => 100, + 'tag_name' => 'tags', +); +$tags = elgg_view_tagcloud($options); $params = array( 'content' => $title . $tags, diff --git a/mod/tagcloud/views/default/widgets/tagcloud/view.php b/mod/tagcloud/views/default/widgets/tagcloud/view.php index 662c02d97..5ed71d66a 100644 --- a/mod/tagcloud/views/default/widgets/tagcloud/view.php +++ b/mod/tagcloud/views/default/widgets/tagcloud/view.php @@ -5,4 +5,10 @@ if (!isset($num_items)) { $num_items = 30; } -echo display_tagcloud(1, $num_items, 'tags', '', '', elgg_get_page_owner_guid()); +$options = array( + 'owner_guid' => elgg_get_page_owner_guid(), + 'threshold' => 1, + 'limit' => $num_items, + 'tag_name' => 'tags', +); +echo elgg_view_tagcloud($options); |