diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-10 22:51:21 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-10 22:51:21 +0000 |
commit | 6fd74abb8884e82a8f3e7da84cbecd3937358faa (patch) | |
tree | 6775d50114e5a73cb3751dcf21f27987fc904e79 /modules | |
parent | 4a35c8aa0d210dc3b724b7de4aaa9f3f0d9dea0b (diff) | |
download | brdo-6fd74abb8884e82a8f3e7da84cbecd3937358faa.tar.gz brdo-6fd74abb8884e82a8f3e7da84cbecd3937358faa.tar.bz2 |
- Renaming parameter to hook_filter_tips()
- Removing some leftover dead code
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter.module | 6 | ||||
-rw-r--r-- | modules/filter/filter.module | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/modules/filter.module b/modules/filter.module index 7697c266b..41a968f52 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -45,7 +45,7 @@ function filter_help($section) { /** * Implementation of hook_filter_tips(). */ -function filter_filter_tips($delta, $format, $type = false) { +function filter_filter_tips($delta, $format, $long = false) { switch ($delta) { case 0: switch (variable_get("filter_html_$format", FILTER_HTML_STRIP)) { @@ -852,10 +852,6 @@ function _filter_html($text, $format) { $text = htmlspecialchars($text); } - if (variable_get("filter_nl2br_$format", true)) { - $text = _filter_autop($text, true); - } - return trim($text); } diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 7697c266b..41a968f52 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -45,7 +45,7 @@ function filter_help($section) { /** * Implementation of hook_filter_tips(). */ -function filter_filter_tips($delta, $format, $type = false) { +function filter_filter_tips($delta, $format, $long = false) { switch ($delta) { case 0: switch (variable_get("filter_html_$format", FILTER_HTML_STRIP)) { @@ -852,10 +852,6 @@ function _filter_html($text, $format) { $text = htmlspecialchars($text); } - if (variable_get("filter_nl2br_$format", true)) { - $text = _filter_autop($text, true); - } - return trim($text); } |