Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
link
Commits
1ed7bd4b
Commit
1ed7bd4b
authored
Oct 31, 2008
by
Nathan Haug
Browse files
#328607. Plain formatter omits query strings and named anchors when printing URLs.
parent
6e646315
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
1ed7bd4b
...
...
@@ -547,7 +547,7 @@ function theme_link_formatter_default($element) {
* Theme function for 'plain' text field formatter.
*/
function
theme_link_formatter_plain
(
$element
)
{
return
empty
(
$element
[
'#item'
][
'url'
])
?
check_plain
(
$element
[
'#item'
][
'title'
])
:
check_plain
(
$element
[
'#item'
][
'url'
]);
return
empty
(
$element
[
'#item'
][
'url'
])
?
check_plain
(
$element
[
'#item'
][
'title'
])
:
url
(
$element
[
'#item'
][
'url'
]
,
$element
[
'#item'
]
);
}
/**
...
...
Write
Preview
Supports
Markdown
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