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/htmlawed/start.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/htmlawed/start.php') diff --git a/mod/htmlawed/start.php b/mod/htmlawed/start.php index 0c5ab6ab0..04c363968 100644 --- a/mod/htmlawed/start.php +++ b/mod/htmlawed/start.php @@ -23,7 +23,7 @@ function htmlawed_init() { //. 'style:color,cursor,text-align,font-size,font-weight,font-style,border,margin,padding,float' ); - register_plugin_hook('validate', 'input', 'htmlawed_filter_tags', 1); + elgg_register_plugin_hook_handler('validate', 'input', 'htmlawed_filter_tags', 1); } /** @@ -79,7 +79,7 @@ function htmlawed_hook($element, $attribute_array) { if ($string = trim($string)) { $string = " $string"; } - + $r = "<$element$string>"; return $r; } @@ -104,7 +104,7 @@ function htmlawed_filter_tags($hook, $entity_type, $returnvalue, $params) { $return = ""; $return = htmLawed($var, $htmlawed_config); } else { - + array_walk_recursive($var, 'htmLawedArray', $htmlawed_config); $return = $var; @@ -123,4 +123,4 @@ function htmLawedArray(&$v, $k, $htmlawed_config) { -register_elgg_event_handler('init', 'system', 'htmlawed_init'); +elgg_register_event_handler('init', 'system', 'htmlawed_init'); -- cgit v1.2.3