aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/groups.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 14:55:22 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 14:55:22 +0000
commita173f54d6fe468f9bc3868ac493570af2eb689a7 (patch)
tree65597369027af515d0adcce5ea4b07f19bf1b433 /mod/notifications/groups.php
parentbbfc74f5fd5002d2bf88045f1d3479a3ac720f3d (diff)
downloadelgg-a173f54d6fe468f9bc3868ac493570af2eb689a7.tar.gz
elgg-a173f54d6fe468f9bc3868ac493570af2eb689a7.tar.bz2
Group notifications, all friends notification option
git-svn-id: https://code.elgg.org/elgg/trunk@2686 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/groups.php')
-rw-r--r--mod/notifications/groups.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/mod/notifications/groups.php b/mod/notifications/groups.php
index 3223ec81d..733ba1d65 100644
--- a/mod/notifications/groups.php
+++ b/mod/notifications/groups.php
@@ -20,28 +20,23 @@
set_context('settings');
// Get the form
- global $SESSION;
+ global $SESSION, $CONFIG;
$people = array();
- if ($groups_ents = get_entities_from_relationship('notify',$SESSION['user']->guid,false,'group','',0,'',99999)) {
- foreach($groups_ents as $ent)
- $groups[] = $ent->guid;
- }
$groupmemberships = get_entities_from_relationship('member',$_SESSION['user']->guid,false,'group','',0,'',9999);
$body = elgg_view('input/form',array(
'body' => elgg_view('notifications/subscriptions/groupsform',array(
- 'groupsubs' => $groups,
'groups' => $groupmemberships
)),
'method' => 'post',
- 'action' => ''
+ 'action' => $CONFIG->wwwroot . 'action/notificationsettings/groupsave'
));
// Insert it into the correct canvas layout
$body = elgg_view_layout('two_column_left_sidebar','',$body);
// Draw the page
- echo page_draw(elgg_echo('notifications:subscriptions:groups'),$body);
+ echo page_draw(elgg_echo('notifications:subscriptions:changesettings:groups'),$body);
?> \ No newline at end of file