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/start.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/notifications/start.php') diff --git a/mod/notifications/start.php b/mod/notifications/start.php index 1691872a6..cdbe78cc1 100644 --- a/mod/notifications/start.php +++ b/mod/notifications/start.php @@ -17,8 +17,11 @@ */ function notifications_plugin_pagesetup() { global $CONFIG; - if (get_context() == 'settings') + if (get_context() == 'settings') { add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), $CONFIG->wwwroot . "mod/notifications/"); + if (is_plugin_enabled('groups')) + add_submenu_item(elgg_echo('notifications:subscriptions:changesettings:groups'), $CONFIG->wwwroot . "mod/notifications/groups.php"); + } } function notifications_plugin_init() { @@ -39,5 +42,6 @@ // Register action global $CONFIG; register_action("notificationsettings/save",false,$CONFIG->pluginspath . "notifications/actions/save.php"); + register_action("notificationsettings/groupsave",false,$CONFIG->pluginspath . "notifications/actions/groupsave.php"); ?> \ No newline at end of file -- cgit v1.2.3