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/captcha/start.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/captcha') diff --git a/mod/captcha/start.php b/mod/captcha/start.php index 0c3f17c60..3458e02a5 100644 --- a/mod/captcha/start.php +++ b/mod/captcha/start.php @@ -21,15 +21,15 @@ function captcha_init() { $CONFIG->captcha_length = 5; // Register a function that provides some default override actions - register_plugin_hook('actionlist', 'captcha', 'captcha_actionlist_hook'); + elgg_register_plugin_hook_handler('actionlist', 'captcha', 'captcha_actionlist_hook'); // Register actions to intercept $actions = array(); - $actions = trigger_plugin_hook('actionlist', 'captcha', NULL, $actions); + $actions = elgg_trigger_plugin_hook('actionlist', 'captcha', NULL, $actions); if (($actions) && (is_array($actions))) { foreach ($actions as $action) { - register_plugin_hook("action", $action, "captcha_verify_action_hook"); + elgg_register_plugin_hook_handler("action", $action, "captcha_verify_action_hook"); } } } @@ -133,4 +133,4 @@ function captcha_actionlist_hook($hook, $entity_type, $returnvalue, $params) { return $returnvalue; } -register_elgg_event_handler('init', 'system', 'captcha_init'); +elgg_register_event_handler('init', 'system', 'captcha_init'); -- cgit v1.2.3