aboutsummaryrefslogtreecommitdiff
path: root/mod/file/start.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-10 22:22:40 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-10 22:22:40 +0000
commitc8f6c3c934df01bf969e3d91ae67f0887de10da9 (patch)
treed21179fda1e19d540eb3ea56b31584f86fc1e338 /mod/file/start.php
parenta7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4 (diff)
downloadelgg-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/file/start.php')
-rw-r--r--mod/file/start.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index 64e890626..78790d034 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -51,7 +51,7 @@
}
// Listen to notification events and supply a more useful message
- register_plugin_hook('notify:entity:message', 'object', 'file_notify_message');
+ elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'file_notify_message');
// add the group files tool option
add_group_tool_option('file',elgg_echo('groups:enablefiles'),true);
@@ -60,9 +60,9 @@
register_entity_type('object','file');
// embed support
- register_plugin_hook('embed_get_sections', 'all', 'file_embed_get_sections');
- register_plugin_hook('embed_get_items', 'file', 'file_embed_get_items');
- register_plugin_hook('embed_get_upload_sections', 'all', 'file_embed_get_upload_sections');
+ elgg_register_plugin_hook_handler('embed_get_sections', 'all', 'file_embed_get_sections');
+ elgg_register_plugin_hook_handler('embed_get_items', 'file', 'file_embed_get_items');
+ elgg_register_plugin_hook_handler('embed_get_upload_sections', 'all', 'file_embed_get_upload_sections');
}
@@ -297,8 +297,8 @@
}
// Make sure test_init is called on initialisation
- register_elgg_event_handler('init','system','file_init');
- register_elgg_event_handler('pagesetup','system','file_submenus');
+ elgg_register_event_handler('init','system','file_init');
+ elgg_register_event_handler('pagesetup','system','file_submenus');
// Register actions
register_action("file/upload", false, $CONFIG->pluginspath . "file/actions/upload.php");