From a173f54d6fe468f9bc3868ac493570af2eb689a7 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 9 Feb 2009 14:55:22 +0000 Subject: Group notifications, all friends notification option git-svn-id: https://code.elgg.org/elgg/trunk@2686 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/notifications/groups.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'mod/notifications/groups.php') 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 -- cgit v1.2.3