You are here

function theme_render_example_add_div in Examples for Developers 7

Wraps a div around the already-rendered #children.

Related topics

File

render_example/render_example.module, line 488
Demonstrates render arrays.

Code

function theme_render_example_add_div($variables) {
  $element = $variables['element'];
  $output = '<div class="render-example-wrapper-div">';
  $output .= $element['#children'];
  $output .= '</div>';
  return $output;
}