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/messages/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/messages/start.php')
-rw-r--r-- | mod/messages/start.php | 12 |
1 files changed, 6 insertions, 6 deletions
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; |