system_test_page_build
- Versions
- 7
system_test_page_build(&$page)
Implements hook_page_build().
Code
modules/simpletest/tests/system_test.module, line 291
<?php
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();
}
}
?>Login or register to post comments 