Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6fd74abb
Commit
6fd74abb
authored
Aug 10, 2004
by
Steven Wittens
Browse files
- Renaming parameter to hook_filter_tips()
- Removing some leftover dead code
parent
4a35c8aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/filter.module
View file @
6fd74abb
...
...
@@ -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
);
}
...
...
modules/filter/filter.module
View file @
6fd74abb
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment