blob: 26c2e501704cf6d40fd167ea51eb9fa4c49707e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?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);
// Add group option
add_group_tool_option('rss', elgg_echo('simplepie:enablerss'), false);
elgg_extend_view('groups/tool_latest', 'simplepie/group_module');
elgg_register_action('simplepie/group_module', elgg_get_plugins_path() . 'simplepie/actions/simplepie/group_module.php');
}
|