aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2014-01-13 00:13:35 +0100
committerSem <sembrestels@riseup.net>2014-01-13 00:13:35 +0100
commitf92ed6b4771efc70f0f5a77aad0bb0357faf3264 (patch)
tree88d3deacd48f49bb0c38b09584ed3896da75d936 /start.php
parent97c0db5dd349f8c777bc813f5f3a00a858412828 (diff)
parent0581f68053380f55118b568a0ae70b9fd34b8dd1 (diff)
downloadelgg-f92ed6b4771efc70f0f5a77aad0bb0357faf3264.tar.gz
elgg-f92ed6b4771efc70f0f5a77aad0bb0357faf3264.tar.bz2
Merge branch 'release/1.8.1'
Diffstat (limited to 'start.php')
-rw-r--r--start.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/start.php b/start.php
index 20adc7545..34a7ced3f 100644
--- a/start.php
+++ b/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);
}