aboutsummaryrefslogtreecommitdiff
path: root/start.php
blob: 03c0c00d25dfcb8ad060254e655fa40dd0c179b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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');
?>