From c8f6c3c934df01bf969e3d91ae67f0887de10da9 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 10 Nov 2010 22:22:40 +0000 Subject: 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 --- mod/notifications/start.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mod/notifications/start.php') 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"); -- cgit v1.2.3