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.php30
1 files changed, 11 insertions, 19 deletions
diff --git a/mod/twitter/start.php b/mod/twitter/start.php
index f71af9430..85dde75bd 100644
--- a/mod/twitter/start.php
+++ b/mod/twitter/start.php
@@ -1,22 +1,14 @@
<?php
+/**
+ * Elgg twitter widget
+ * This plugin allows users to pull in their twitter feed to display on their profile
+ *
+ * @package ElggTwitter
+ */
- /**
- * Elgg twitter widget
- * This plugin allows users to pull in their twitter feed to display on their profile
- *
- * @package ElggTwitter
- */
-
- function twitter_init() {
-
- //extend css if style is required
- elgg_extend_view('css/screen', 'twitter/css');
-
- //add a widget
- elgg_register_widget_type('twitter',"Twitter","This is your twitter feed");
-
- }
-
- elgg_register_event_handler('init','system','twitter_init');
+register_elgg_event_handler('init', 'system', 'twitter_init');
-?> \ No newline at end of file
+function twitter_init() {
+ elgg_extend_view('css/screen', 'twitter/css');
+ add_widget_type('twitter', elgg_echo('twitter:title'), elgg_echo('twitter:info'));
+}