Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3421017
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3421017
Commits
d04b6596
Commit
d04b6596
authored
18 years ago
by
Gerhard Killesreiter
Browse files
Options
Downloads
Patches
Plain Diff
#60797
, theme('taxonomy_term_select', $element) called, but output is ignored, patch by chx
parent
f16b6b29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/form.inc
+7
-4
7 additions, 4 deletions
includes/form.inc
with
7 additions
and
4 deletions
includes/form.inc
+
7
−
4
View file @
d04b6596
...
...
@@ -496,8 +496,8 @@ function form_render(&$elements) {
}
$content
=
''
;
uasort
(
$elements
,
"_form_sort"
);
if
(
!
isset
(
$elements
[
'#children'
]))
{
$children
=
element_children
(
$elements
);
/* Render all the children that use a theme function */
if
(
isset
(
$elements
[
'#theme'
])
&&
!
$elements
[
'#theme_used'
])
{
$elements
[
'#theme_used'
]
=
TRUE
;
...
...
@@ -511,12 +511,15 @@ function form_render(&$elements) {
$elements
[
'#value'
]
=
$previous_value
;
$elements
[
'#type'
]
=
$previous_type
;
// if we rendered a single element, then we will skip the renderer
if
(
empty
(
$children
))
{
$elements
[
'#printed'
]
=
TRUE
;
}
unset
(
$elements
[
'#prefix'
],
$elements
[
'#suffix'
]);
}
/* render each of the children using form_render and concatenate them */
if
(
!
$content
)
{
foreach
(
element_children
(
$elements
)
as
$key
)
{
foreach
(
$children
as
$key
)
{
$content
.
=
form_render
(
$elements
[
$key
]);
}
}
...
...
@@ -525,7 +528,7 @@ function form_render(&$elements) {
$elements
[
'#children'
]
=
$content
;
}
/
* Call the form element renderer */
/
/ Until now, we rendered the children, here we render the element itself
if
(
!
isset
(
$elements
[
'#printed'
]))
{
$content
=
theme
((
$elements
[
'#type'
])
?
$elements
[
'#type'
]
:
'markup'
,
$elements
);
$elements
[
'#printed'
]
=
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment