function render_example_add_hr

Alter the rendered output after all other theming.

This #post_render function gets to alter the rendered output after all theme functions have acted on it, and it receives the original data, so can make decisions based on that. In this example, no use is made of the passed-in $element.

Parameters

string $markup: The already-rendered data

array $element: The data element that was rendered

Return value

string The altered data.

Related topics

1 string reference to 'render_example_add_hr'
render_example_page_alter in render_example/render_example.module
Implements hook_page_alter().

File

render_example/render_example.module, line 551

Code

function render_example_add_hr($markup, $element) {
    $output = $markup . '<hr />';
    return $output;
}