1 render_example.module | theme_render_example_add_notes($variables) |
Wraps a div and add a little text after the rendered #children.
Related topics
File
- modules/
examples/ render_example/ render_example.module, line 292 - Hook implementations for the Render Example module.
Code
function theme_render_example_add_notes($variables) {
$element = $variables['element'];
$output = '<div class="render-example-notes-wrapper-div">';
$output .= $element['#children'];
$output .= '<em>' . t('This is a note added by a #theme_wrapper') . '</em>';
$output .= '</div>';
return $output;
}