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