]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
moved action registration into init
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 6 Jan 2011 02:51:39 +0000 (02:51 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 6 Jan 2011 02:51:39 +0000 (02:51 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7848 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/notifications/start.php

index 859f4ac14e89c4214deb89e7967b952548397a4b..624207e89d0260cc57af3d9eb84b61ae14bd3ba0 100644 (file)
@@ -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");