aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 02:51:39 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 02:51:39 +0000
commitd47a736dcd87b664a6e09540a3e605429d274911 (patch)
tree6b75c7ba3da9e620b77d76aee1ce49e94f3aa668 /mod/notifications
parent806edd4573f41e8796f8808e302c948e247af964 (diff)
downloadelgg-d47a736dcd87b664a6e09540a3e605429d274911.tar.gz
elgg-d47a736dcd87b664a6e09540a3e605429d274911.tar.bz2
moved action registration into init
git-svn-id: http://code.elgg.org/elgg/trunk@7848 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications')
-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");