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
4385856d
Commit
4385856d
authored
Oct 09, 2011
by
Angie Byron
Browse files
Issue
#1253828
by sven.lauer: Fixed drupal_render() doc should explain what 'child' means.
parent
0618ee52
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
4385856d
...
...
@@ -5520,15 +5520,24 @@ function drupal_render_page($page) {
*
* Recursively iterates over each of the array elements, generating HTML code.
*
* HTML generation is controlled by two properties containing theme functions,
* #theme and #theme_wrappers.
* Renderable arrays have two kinds of key/value pairs: properties and
* children. Properties have keys starting with '#' and their values influence
* how the array will be rendered. Children are all elements whose keys do not
* start with a '#'. Their values should be renderable arrays themselves,
* which will be rendered during the rendering of the parent array. The markup
* provided by the children is typically inserted into the markup generated by
* the parent array.
*
* HTML generation for a renderable array, and the treatment of any children,
* is controlled by two properties containing theme functions, #theme and
* #theme_wrappers.
*
* #theme is the theme function called first. If it is set and the element has
* any children,
they have to be rendered there. For elements that are not
*
allowed to have any children, e.g. buttons or textfields, it can be used to
*
render the element itself. If #theme is not present and the element has
*
children, they are rendered and concatenated into a string b
y
* drupal_render_children().
* any children,
it is the responsibility of the theme function to render
*
these children. For elements that are not allowed to have any children,
*
e.g. buttons or textfields, the theme function can be used to render the
*
element itself. If #theme is not present and the element has children, the
y
*
are rendered and concatenated into a string by
drupal_render_children().
*
* The #theme_wrappers property contains an array of theme functions which will
* be called, in order, after #theme has run. These can be used to add further
...
...
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