Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
4a1059fa
Commit
4a1059fa
authored
Nov 07, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#620692
by Crell: remove drupal_render_children() from drupal_render() by inlining it.
parent
a8ec4e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
includes/common.inc
includes/common.inc
+6
-3
No files found.
includes/common.inc
View file @
4a1059fa
...
...
@@ -4963,10 +4963,13 @@ function drupal_render(&$elements) {
if
(
isset
(
$elements
[
'#theme'
]))
{
$elements
[
'#children'
]
=
theme
(
$elements
[
'#theme'
],
$elements
);
}
// If #theme was not set and the element has children, render them now
// using drupal_render_children().
// If #theme was not set and the element has children, render them now.
// This is the same process as drupal_render_children() but is inlined
// for speed.
if
(
$elements
[
'#children'
]
==
''
)
{
$elements
[
'#children'
]
=
drupal_render_children
(
$elements
,
$children
);
foreach
(
$children
as
$key
)
{
$elements
[
'#children'
]
.
=
drupal_render
(
$elements
[
$key
]);
}
}
// Let the theme functions in #theme_wrappers add markup around the rendered
...
...
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