From 6fd74abb8884e82a8f3e7da84cbecd3937358faa Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 10 Aug 2004 22:51:21 +0000 Subject: - Renaming parameter to hook_filter_tips() - Removing some leftover dead code --- modules/filter.module | 6 +----- modules/filter/filter.module | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'modules') 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); } -- cgit v1.2.3