diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:28:31 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:28:31 +0100 |
commit | 536ad685d02d6721671237bc6e6f5a04334419ac (patch) | |
tree | 7eee2da63fd896bbaa2e6ff182565c01f8445bec /mod/simplepie/start.php | |
parent | 77f0367d454711f1d00e1fcfc5d31147055cc66a (diff) | |
parent | 97c0db5dd349f8c777bc813f5f3a00a858412828 (diff) | |
download | elgg-536ad685d02d6721671237bc6e6f5a04334419ac.tar.gz elgg-536ad685d02d6721671237bc6e6f5a04334419ac.tar.bz2 |
Add 'mod/simplepie/' from commit '97c0db5dd349f8c777bc813f5f3a00a858412828'
git-subtree-dir: mod/simplepie
git-subtree-mainline: 77f0367d454711f1d00e1fcfc5d31147055cc66a
git-subtree-split: 97c0db5dd349f8c777bc813f5f3a00a858412828
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);
+}
|