function system_test_page_build

Implements hook_page_build().

File

modules/simpletest/tests/system_test.module, line 408

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();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.