function theme_render_array

Themes the render array (from the demonstration page).

Related topics

File

render_example/render_example.module, line 512

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