aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2009-01-18 19:50:11 +0000
committercash <cash.costello@gmail.com>2009-01-18 19:50:11 +0000
commitf343959dc964caa05d4763aabe230bb790f62757 (patch)
tree7d4994ce1ff0127749a151f5b620c619918260e8 /start.php
downloadelgg-f343959dc964caa05d4763aabe230bb790f62757.tar.gz
elgg-f343959dc964caa05d4763aabe230bb790f62757.tar.bz2
Diffstat (limited to 'start.php')
-rw-r--r--start.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/start.php b/start.php
new file mode 100644
index 000000000..03c0c00d2
--- /dev/null
+++ b/start.php
@@ -0,0 +1,22 @@
+<?php
+
+ /**
+ * Simplepie Plugin
+ *
+ * Loads the simplepie feed parser library
+ **/
+
+ function simplepie_init()
+ {
+ global $CONFIG;
+
+ if (!class_exists('SimplePie'))
+ {
+ require_once $CONFIG->pluginspath . '/simplepie/simplepie.inc';
+ }
+
+ add_widget_type('feed_reader', 'Feed Reader Widget', 'single feed');
+ }
+
+ register_elgg_event_handler('plugins_boot', 'system', 'simplepie_init');
+?>