From d47a736dcd87b664a6e09540a3e605429d274911 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 6 Jan 2011 02:51:39 +0000 Subject: moved action registration into init git-svn-id: http://code.elgg.org/elgg/trunk@7848 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/notifications/start.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mod/notifications') 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"); -- cgit v1.2.3