diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 22:22:40 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 22:22:40 +0000 |
commit | c8f6c3c934df01bf969e3d91ae67f0887de10da9 (patch) | |
tree | d21179fda1e19d540eb3ea56b31584f86fc1e338 /mod/notifications/start.php | |
parent | a7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4 (diff) | |
download | elgg-c8f6c3c934df01bf969e3d91ae67f0887de10da9.tar.gz elgg-c8f6c3c934df01bf969e3d91ae67f0887de10da9.tar.bz2 |
Fixes #2367: With fear and trepidation, converting events/plugin hooks to use elgg_ prefixed versions
git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/start.php')
-rw-r--r-- | mod/notifications/start.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/notifications/start.php b/mod/notifications/start.php index d98c475d3..093b49b0f 100644 --- a/mod/notifications/start.php +++ b/mod/notifications/start.php @@ -14,19 +14,19 @@ function notifications_plugin_init() { register_page_handler('notifications', 'notifications_page_handler'); - register_elgg_event_handler('pagesetup', 'system', 'notifications_plugin_pagesetup'); + elgg_register_event_handler('pagesetup', 'system', 'notifications_plugin_pagesetup'); // Unset the default notification settings - unregister_plugin_hook('usersettings:save', 'user', 'notification_user_settings_save'); + elgg_unregister_plugin_hook_handler('usersettings:save', 'user', 'notification_user_settings_save'); elgg_unextend_view('usersettings/user', 'notifications/settings/usersettings'); // update notifications based on relationships changing - register_elgg_event_handler('delete', 'member', 'notifications_relationship_remove'); - register_elgg_event_handler('delete', 'friend', 'notifications_relationship_remove'); + elgg_register_event_handler('delete', 'member', 'notifications_relationship_remove'); + elgg_register_event_handler('delete', 'friend', 'notifications_relationship_remove'); // update notifications when new friend or access collection membership - register_elgg_event_handler('create', 'friend', 'notifications_update_friend_notify'); - register_plugin_hook('access:collections:add_user', 'collection', 'notifications_update_collection_notify'); + elgg_register_event_handler('create', 'friend', 'notifications_update_friend_notify'); + elgg_register_plugin_hook_handler('access:collections:add_user', 'collection', 'notifications_update_collection_notify'); } /** @@ -172,7 +172,7 @@ function notifications_update_collection_notify($event, $object_type, $returnval } } -register_elgg_event_handler('init', 'system', 'notifications_plugin_init', 1000); +elgg_register_event_handler('init', 'system', 'notifications_plugin_init', 1000); register_action("notificationsettings/save", FALSE, $CONFIG->pluginspath . "notifications/actions/save.php"); |