1 render_example.module theme_render_example_add_div($variables)

Wraps a div around the already-rendered #children.

Related topics

File

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

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;
}