Provides pre_render function for the toolbar.
Since building the toolbar takes some time, it is done just prior to rendering to ensure that it is built only if it will be displayed.
function toolbar_pre_render($toolbar) {
$toolbar = array_merge($toolbar, toolbar_view());
return $toolbar;
}