function disclaimer_page_build in Disclaimer 7
Implements hook_page_build().
File
- ./
disclaimer.module, line 35 - Create and show disclaimer for your site.
Code
function disclaimer_page_build(&$page) {
if (!disclaimer_show()) {
return;
}
if ($key = variable_get('disclaimer_region', NULL)) {
// Add disclaimer content on page.
$page[$key]['disclaimer'] = array(
'#markup' => _disclaimer_build_content(),
);
}
}