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
58db005b
Commit
58db005b
authored
Apr 30, 2006
by
drumm
Browse files
Forward port from 4.7
#60797
, moved comment, patch by Zen
parent
d6b538ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
58db005b
...
...
@@ -504,6 +504,7 @@ function form_render(&$elements) {
$previous_value
=
$elements
[
'#value'
];
$previous_type
=
$elements
[
'#type'
];
// If we rendered a single element, then we will skip the renderer.
if
(
empty
(
$children
))
{
$elements
[
'#printed'
]
=
TRUE
;
}
...
...
@@ -516,7 +517,6 @@ function form_render(&$elements) {
$elements
[
'#value'
]
=
$previous_value
;
$elements
[
'#type'
]
=
$previous_type
;
// if we rendered a single element, then we will skip the renderer
unset
(
$elements
[
'#prefix'
],
$elements
[
'#suffix'
]);
}
/* render each of the children using form_render and concatenate them */
...
...
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