aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/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/ecml/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/ecml/start.php')
-rw-r--r--mod/ecml/start.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/mod/ecml/start.php b/mod/ecml/start.php
index 14031aac4..82bea88ae 100644
--- a/mod/ecml/start.php
+++ b/mod/ecml/start.php
@@ -45,25 +45,25 @@ function ecml_init() {
//elgg_extend_view('input/text', 'ecml/input_ext');
// add parsing for core views.
- register_plugin_hook('get_views', 'ecml', 'ecml_views_hook');
+ elgg_register_plugin_hook_handler('get_views', 'ecml', 'ecml_views_hook');
// get register the views we want to parse for ecml
// @todo will need to do profiling to see if it would be faster
// to foreach through this list and register to specific views or
// do the check in a single plugin hook.
// Wants array('view_name' => 'Short Description')
- $CONFIG->ecml_parse_views = trigger_plugin_hook('get_views', 'ecml', NULL, array());
+ $CONFIG->ecml_parse_views = elgg_trigger_plugin_hook('get_views', 'ecml', NULL, array());
foreach ($CONFIG->ecml_parse_views as $view => $desc) {
- register_plugin_hook('view', $view, 'ecml_parse_view');
+ elgg_register_plugin_hook_handler('view', $view, 'ecml_parse_view');
}
// provide a few built-in ecml keywords.
// @todo could pull this out into an array here to save an API call.
- register_plugin_hook('get_keywords', 'ecml', 'ecml_keyword_hook');
+ elgg_register_plugin_hook_handler('get_keywords', 'ecml', 'ecml_keyword_hook');
// grab the list of keywords and their views from plugins
- $CONFIG->ecml_keywords = trigger_plugin_hook('get_keywords', 'ecml', NULL, array());
+ $CONFIG->ecml_keywords = elgg_trigger_plugin_hook('get_keywords', 'ecml', NULL, array());
// grab permissions for specific views/contexts
// this is a black list.
@@ -73,10 +73,10 @@ function ecml_init() {
$CONFIG->ecml_permissions = unserialize(get_plugin_setting('ecml_permissions', 'ecml'));
// 3rd party media embed section
- register_plugin_hook('embed_get_sections', 'all', 'ecml_embed_web_services_hook');
+ elgg_register_plugin_hook_handler('embed_get_sections', 'all', 'ecml_embed_web_services_hook');
// remove ecml when stripping tags
- register_plugin_hook('format', 'strip_tags', 'ecml_strip_tags');
+ elgg_register_plugin_hook_handler('format', 'strip_tags', 'ecml_strip_tags');
}
/**
@@ -295,4 +295,4 @@ function ecml_strip_tags($hook, $type, $value, $params) {
}
// be sure to run after other plugins
-register_elgg_event_handler('init', 'system', 'ecml_init', 9999); \ No newline at end of file
+elgg_register_event_handler('init', 'system', 'ecml_init', 9999); \ No newline at end of file