aboutsummaryrefslogtreecommitdiff
path: root/mod/tagcloud/views/default/widgets/tagcloud/content.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tagcloud/views/default/widgets/tagcloud/content.php')
-rw-r--r--mod/tagcloud/views/default/widgets/tagcloud/content.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/tagcloud/views/default/widgets/tagcloud/content.php b/mod/tagcloud/views/default/widgets/tagcloud/content.php
new file mode 100644
index 000000000..5ed71d66a
--- /dev/null
+++ b/mod/tagcloud/views/default/widgets/tagcloud/content.php
@@ -0,0 +1,14 @@
+<?php
+
+$num_items = $vars['entity']->num_items;
+if (!isset($num_items)) {
+ $num_items = 30;
+}
+
+$options = array(
+ 'owner_guid' => elgg_get_page_owner_guid(),
+ 'threshold' => 1,
+ 'limit' => $num_items,
+ 'tag_name' => 'tags',
+);
+echo elgg_view_tagcloud($options);