Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b8d81c6a
Commit
b8d81c6a
authored
Mar 07, 2006
by
Dries Buytaert
Browse files
- Patch
#52448
by Zen: simplified drupal_attributes.
parent
bbca6b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
b8d81c6a
...
...
@@ -983,11 +983,11 @@ function url($path = NULL, $query = NULL, $fragment = NULL, $absolute = FALSE) {
*/
function
drupal_attributes
(
$attributes
=
array
())
{
if
(
is_array
(
$attributes
))
{
$t
=
array
()
;
$t
=
''
;
foreach
(
$attributes
as
$key
=>
$value
)
{
$t
[]
=
$key
.
'
=
"'
.
check_plain
(
$value
)
.
'"'
;
$t
.
=
"
$key
="
.
'"'
.
check_plain
(
$value
)
.
'"'
;
}
return
' '
.
implode
(
' '
,
$t
)
;
return
$t
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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