aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/notifications/start.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/notifications/start.php b/mod/notifications/start.php
index 859f4ac14..624207e89 100644
--- a/mod/notifications/start.php
+++ b/mod/notifications/start.php
@@ -27,6 +27,9 @@ function notifications_plugin_init() {
// update notifications when new friend or access collection membership
elgg_register_event_handler('create', 'friend', 'notifications_update_friend_notify');
elgg_register_plugin_hook_handler('access:collections:add-user', 'collection', 'notifications_update_collection_notify');
+
+ elgg_register_action("notificationsettings/save", $CONFIG->pluginspath . "notifications/actions/save.php");
+ elgg_register_action("notificationsettings/groupsave", $CONFIG->pluginspath . "notifications/actions/groupsave.php");
}
/**
@@ -185,7 +188,3 @@ function notifications_update_collection_notify($event, $object_type, $returnval
}
elgg_register_event_handler('init', 'system', 'notifications_plugin_init', 1000);
-
-
-elgg_register_action("notificationsettings/save", $CONFIG->pluginspath . "notifications/actions/save.php");
-elgg_register_action("notificationsettings/groupsave", $CONFIG->pluginspath . "notifications/actions/groupsave.php");