aboutsummaryrefslogtreecommitdiff
path: root/mod/tagcloud/start.php
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-12 18:10:54 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-12 18:10:54 +0000
commitf46bd9269d84f35e809cb6fddb72264adfbb0904 (patch)
treede421898a3162d5b58837b039c94b4c2908cd389 /mod/tagcloud/start.php
parent73ed4ae8513af1cc6e795b125cc1f319a965bfb4 (diff)
downloadelgg-f46bd9269d84f35e809cb6fddb72264adfbb0904.tar.gz
elgg-f46bd9269d84f35e809cb6fddb72264adfbb0904.tar.bz2
Added updated tagcloud plugin and added to core mods.
git-svn-id: http://code.elgg.org/elgg/trunk@5379 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tagcloud/start.php')
-rw-r--r--mod/tagcloud/start.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/tagcloud/start.php b/mod/tagcloud/start.php
new file mode 100644
index 000000000..cb397d7e9
--- /dev/null
+++ b/mod/tagcloud/start.php
@@ -0,0 +1,18 @@
+<?php
+ function tagcloud_init() {
+ add_widget_type('tagcloud', elgg_echo('tagcloud:widget:title'), elgg_echo('tagcloud:widget:description'));
+
+ // Extend CSS
+ extend_view('css','tagcloud/css');
+
+ if(is_plugin_enabled('blog')) {
+ // extend blog sidebar with a tag-cloud
+ }
+ if(is_plugin_enabled('bookmarks')) {
+ // extend bkmrks sidebar with a tag-cloud
+ }
+
+ }
+
+ register_elgg_event_handler('init', 'system', 'tagcloud_init');
+?>