aboutsummaryrefslogtreecommitdiff
path: root/mod/tagcloud/start.php
diff options
context:
space:
mode:
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');
+?>