1 render_example.module theme_render_array($variables)

Themes the render array (from the demonstration page).

Related topics

File

modules/examples/render_example/render_example.module, line 307
Demonstrates render arrays.

Code

function theme_render_array($variables) {
  $heading = '<div class="render-header">' . $variables['element']['#description'] . '</div>';

  $rendered = '<div class="render-array">' . $heading . $variables['element']['#children'] . '</div>';
  return $rendered;
}