diff options
author | cash <cash.costello@gmail.com> | 2009-01-18 19:50:11 +0000 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2009-01-18 19:50:11 +0000 |
commit | f343959dc964caa05d4763aabe230bb790f62757 (patch) | |
tree | 7d4994ce1ff0127749a151f5b620c619918260e8 /start.php | |
download | elgg-f343959dc964caa05d4763aabe230bb790f62757.tar.gz elgg-f343959dc964caa05d4763aabe230bb790f62757.tar.bz2 |
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 22 |
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');
+?>
|