aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-21 13:21:44 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-21 13:21:44 +0000
commit9eae841ec5c036fa74565a3a06e6f53f2dc80af4 (patch)
tree4a8747bd1466b1b072f208e6254e35899d3ef4ae /mod
parent75187715f6d7a04bbda4858d6a17138001da4807 (diff)
downloadelgg-9eae841ec5c036fa74565a3a06e6f53f2dc80af4.tar.gz
elgg-9eae841ec5c036fa74565a3a06e6f53f2dc80af4.tar.bz2
removed deprecated tag library calls
git-svn-id: http://code.elgg.org/elgg/trunk@7397 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/views/default/blog/sidebar_menu.php19
-rw-r--r--mod/file/start.php10
-rw-r--r--mod/tagcloud/tagcloud.php8
-rw-r--r--mod/tagcloud/views/default/widgets/tagcloud/view.php8
4 files changed, 40 insertions, 5 deletions
diff --git a/mod/blog/views/default/blog/sidebar_menu.php b/mod/blog/views/default/blog/sidebar_menu.php
index 120237ac5..87b0a8cf9 100644
--- a/mod/blog/views/default/blog/sidebar_menu.php
+++ b/mod/blog/views/default/blog/sidebar_menu.php
@@ -59,7 +59,22 @@ if ($page_owner) {
// friends page lists all tags; mine lists owner's
$owner_guid = ($vars['page'] == 'friends') ? '' : $page_owner->getGUID();
- echo display_tagcloud(0, 50, 'tags', 'object', 'blog', $owner_guid);
+ $options = array(
+ 'type' => 'object',
+ 'subtype' => 'blog',
+ 'owner_guid' => $owner_guid,
+ 'threshold' => 0,
+ 'limit' => 50,
+ 'tag_name' => 'tags',
+ );
+ echo elgg_view_tagcloud($options);
} else {
- echo display_tagcloud(0, 50, 'tags', 'object', 'blog');
+ $options = array(
+ 'type' => 'object',
+ 'subtype' => 'blog',
+ 'threshold' => 0,
+ 'limit' => 50,
+ 'tag_name' => 'tags',
+ );
+ echo elgg_view_tagcloud($options);
}
diff --git a/mod/file/start.php b/mod/file/start.php
index 78790d034..10fbff27e 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -213,7 +213,15 @@
}
elgg_register_tag_metadata_name('simpletype');
- $types = get_tags(0,10,'simpletype','object','file',$owner_guid);
+ $options = array(
+ 'type' => 'object',
+ 'subtype' => 'file',
+ 'owner_guid' => $owner_guid,
+ 'threshold' => 0,
+ 'limit' => 10,
+ 'tag_names' => array('simpletype')
+ );
+ $types = elgg_get_tags($options);
return elgg_view('file/typecloud',array('owner_guid' => $owner_guid, 'friend_guid' => $friendofguid, 'types' => $types));
}
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);