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/messages/start.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mod/messages/start.php') diff --git a/mod/messages/start.php b/mod/messages/start.php index 7f5f2c647..027003284 100644 --- a/mod/messages/start.php +++ b/mod/messages/start.php @@ -44,14 +44,14 @@ function messages_init() { // Register a notification handler for site messages register_notification_handler("site", "messages_site_notify_handler"); - register_plugin_hook('notify:entity:message','object','messages_notification_msg'); + elgg_register_plugin_hook_handler('notify:entity:message','object','messages_notification_msg'); register_notification_object('object','messages',elgg_echo('messages:new')); // Override metadata permissions - register_plugin_hook('permissions_check:metadata','object','messages_can_edit_metadata'); + elgg_register_plugin_hook_handler('permissions_check:metadata','object','messages_can_edit_metadata'); // ecml - register_plugin_hook('get_views', 'ecml', 'messages_ecml_views_hook'); + elgg_register_plugin_hook_handler('get_views', 'ecml', 'messages_ecml_views_hook'); } @@ -317,10 +317,10 @@ function messages_ecml_views_hook($hook, $entity_type, $return_value, $params) { // Make sure the messages initialisation function is called on initialisation -register_elgg_event_handler('init','system','messages_init'); +elgg_register_event_handler('init','system','messages_init'); -register_plugin_hook('permissions_check','object','messages_can_edit'); -register_plugin_hook('container_permissions_check','object','messages_can_edit_container'); +elgg_register_plugin_hook_handler('permissions_check','object','messages_can_edit'); +elgg_register_plugin_hook_handler('container_permissions_check','object','messages_can_edit_container'); // Register actions global $CONFIG; -- cgit v1.2.3