aboutsummaryrefslogtreecommitdiff
path: root/mod/htmlawed
diff options
context:
space:
mode:
Diffstat (limited to 'mod/htmlawed')
-rw-r--r--mod/htmlawed/start.php8
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');