diff options
author | Sem <sembrestels@riseup.net> | 2014-01-22 04:02:17 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2014-01-22 04:02:17 +0100 |
commit | c0295c275d6edbca6c6c8bb51dc199150d0d5fc3 (patch) | |
tree | 2c5a744a3859d27883f92b72aef9cf81f1a947d0 /mod/simplepie/start.php | |
parent | 4a2ed114bb18c5363f594a380676c5654f4165a4 (diff) | |
parent | ae76fa880c7aeb7f7b0846dd4b109be8d398018c (diff) | |
download | elgg-c0295c275d6edbca6c6c8bb51dc199150d0d5fc3.tar.gz elgg-c0295c275d6edbca6c6c8bb51dc199150d0d5fc3.tar.bz2 |
Merge commit 'ae76fa880c7aeb7f7b0846dd4b109be8d398018c' into develop
Diffstat (limited to 'mod/simplepie/start.php')
-rw-r--r-- | mod/simplepie/start.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/simplepie/start.php b/mod/simplepie/start.php index 20adc7545..34a7ced3f 100644 --- a/mod/simplepie/start.php +++ b/mod/simplepie/start.php @@ -20,4 +20,14 @@ function simplepie_init() { $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/save_group_feed', elgg_get_plugins_path() . 'simplepie/actions/simplepie/save_group_feed.php');
+}
+
+function simplepie_is_url($url) {
+ return preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i", $url);
}
|