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
61b9b358
Commit
61b9b358
authored
Apr 13, 2006
by
Gerhard Killesreiter
Browse files
#58586
, Checkbox element is broken, patch by chx
parent
b61d9c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
61b9b358
...
...
@@ -832,7 +832,7 @@ function theme_checkbox($element) {
$checkbox
.
=
'name="'
.
$element
[
'#name'
]
.
'" '
;
$checkbox
.
=
'id="'
.
$element
[
'#id'
]
.
'" '
;
$checkbox
.
=
'value="'
.
$element
[
'#return_value'
]
.
'" '
;
$checkbox
.
=
(
$element
[
'#return_value'
]
==
$element
[
'#value'
])
?
' checked="checked" '
:
' '
;
$checkbox
.
=
(
$element
[
'#
value'
]
||
(
string
)
$element
[
'#
return_value'
]
==
(
string
)
$element
[
'#value'
])
?
' checked="checked" '
:
' '
;
$checkbox
.
=
drupal_attributes
(
$element
[
'#attributes'
])
.
' />'
;
if
(
!
is_null
(
$element
[
'#title'
]))
{
...
...
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