function system_test_page_build in SimpleTest 7
Implement hook_page_build().
File
- tests/
system_test.module, line 253
Code
function system_test_page_build(&$page) {
$menu_item = menu_get_item();
$main_content_display =& drupal_static('system_main_content_added', FALSE);
if ($menu_item['path'] == 'system-test/main-content-handling') {
$page['footer'] = drupal_set_page_content();
$page['footer']['main']['#markup'] = '<div id="system-test-content">' . $page['footer']['main']['#markup'] . '</div>';
}
else {
if ($menu_item['path'] == 'system-test/main-content-fallback') {
drupal_set_page_content();
$main_content_display = FALSE;
}
else {
if ($menu_item['path'] == 'system-test/main-content-duplication') {
drupal_set_page_content();
}
}
}
}