function system_test_page_build

Implements hook_page_build().

File

drupal/modules/simpletest/tests/system_test.module, line 363

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>';
  }
  elseif ($menu_item['path'] == 'system-test/main-content-fallback') {
    drupal_set_page_content();
    $main_content_display = FALSE;
  }
  elseif ($menu_item['path'] == 'system-test/main-content-duplication') {
    drupal_set_page_content();
  }
}