function system_page_alter

Implements hook_page_alter().

File

modules/system/system.module, line 3559

Code

function system_page_alter(&$page) {
    // Find all non-empty page regions, and add a theme wrapper function that
    // allows them to be consistently themed.
    foreach (system_region_list($GLOBALS['theme'], REGIONS_ALL, FALSE) as $region) {
        if (!empty($page[$region])) {
            $page[$region]['#theme_wrappers'][] = 'region';
            $page[$region]['#region'] = $region;
        }
    }
}

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