function theme_render_example_aggregate in Examples for Developers 7
A #theme function.
This #theme function has the responsibility of consolidating/rendering the children's markup and returning it, where it will be placed in the element's #children property.
Related topics
1 theme call to theme_render_example_aggregate()
- render_example_arrays in render_example/
render_example.module - Provides a number of render arrays and show what they do.
File
- render_example/
render_example.module, line 257 - Demonstrates render arrays.
Code
function theme_render_example_aggregate($variables) {
$output = '';
foreach (element_children($variables['element']['child']) as $item) {
$output .= $variables['element']['child'][$item] . $variables['element']['#separator'];
}
return $output;
}