aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/twitter/start.php')
-rw-r--r--mod/twitter/start.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/twitter/start.php b/mod/twitter/start.php
new file mode 100644
index 000000000..b793eadf0
--- /dev/null
+++ b/mod/twitter/start.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * Elgg twitter widget
+ * This plugin allows users to pull in their twitter feed to display on their profile
+ *
+ * @package ElggTwitter
+ */
+
+elgg_register_event_handler('init', 'system', 'twitter_init');
+
+function twitter_init() {
+ elgg_extend_view('css/elgg', 'twitter/css');
+ elgg_register_widget_type('twitter', elgg_echo('twitter:title'), elgg_echo('twitter:info'));
+}