1 render_example.module theme_render_example_aggregate($variables)

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

File

modules/examples/render_example/render_example.module, line 249
Hook implementations for the Render Example module.

Code

function theme_render_example_aggregate($variables) {
  $output = '';
  foreach (element_children($variables['element']['child']) as $item) {
    $output .= $variables['element']['child'][$item][0] . $variables['element']['#separator'];
  }
  return $output;
}