summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-10 22:51:21 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-10 22:51:21 +0000
commit6fd74abb8884e82a8f3e7da84cbecd3937358faa (patch)
tree6775d50114e5a73cb3751dcf21f27987fc904e79 /modules
parent4a35c8aa0d210dc3b724b7de4aaa9f3f0d9dea0b (diff)
downloadbrdo-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.module6
-rw-r--r--modules/filter/filter.module6
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);
}