diff options
Diffstat (limited to 'mod/simplepie/start.php')
-rw-r--r-- | mod/simplepie/start.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/simplepie/start.php b/mod/simplepie/start.php new file mode 100644 index 000000000..20adc7545 --- /dev/null +++ b/mod/simplepie/start.php @@ -0,0 +1,23 @@ +<?php
+/**
+ * Simplepie Plugin
+ *
+ * Loads the simplepie feed parser library and provides a widget
+ */
+
+elgg_register_event_handler('init', 'system', 'simplepie_init');
+
+function simplepie_init() {
+ elgg_register_widget_type(
+ 'feed_reader',
+ elgg_echo('simplepie:widget'),
+ elgg_echo('simplepie:description'),
+ 'all',
+ true
+ );
+
+ elgg_extend_view('css/elgg', 'simplepie/css');
+
+ $lib = elgg_get_plugins_path() . 'simplepie/vendors/simplepie.inc';
+ elgg_register_library('simplepie', $lib);
+}
|