aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/notifications/start.php')
-rw-r--r--mod/notifications/start.php6
1 files changed, 5 insertions, 1 deletions
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