You are here

function theme_render_array in Examples for Developers 7

Themes the render array (from the demonstration page).

Related topics

File

render_example/render_example.module, line 512
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;
}