Commit 6fd74abb authored by Steven Wittens's avatar Steven Wittens

- Renaming parameter to hook_filter_tips()

- Removing some leftover dead code
parent 4a35c8aa
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment