aboutsummaryrefslogtreecommitdiff
path: root/actions/simplepie/group_module.php
diff options
context:
space:
mode:
authorcapo <capo@riseup.net>2013-12-16 00:12:26 +0100
committercapo <capo@riseup.net>2013-12-16 00:12:26 +0100
commite5dd9906d16d97aed7ba3511b7e1132bd4da3761 (patch)
tree79d6ff965e20c54fb498433fa1435bf92f9e64c8 /actions/simplepie/group_module.php
parent408a27487d24938a3fa86c69a567b8666877347b (diff)
downloadelgg-e5dd9906d16d97aed7ba3511b7e1132bd4da3761.tar.gz
elgg-e5dd9906d16d97aed7ba3511b7e1132bd4da3761.tar.bz2
Added feature to be able to use simplepie rss module in the groups
Diffstat (limited to 'actions/simplepie/group_module.php')
-rw-r--r--actions/simplepie/group_module.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/actions/simplepie/group_module.php b/actions/simplepie/group_module.php
new file mode 100644
index 000000000..93fe353de
--- /dev/null
+++ b/actions/simplepie/group_module.php
@@ -0,0 +1,8 @@
+<?php
+
+$group = get_entity(get_input('group_guid'));
+$feed_url = get_input('feed_url');
+
+if ($group && $group->canEdit()) {
+ $group->feed_url = $feed_url;
+}