function system_page_alter

Implements hook_page_alter().

File

drupal/core/modules/system/system.module, line 3632
Configuration system that lets administrators modify the workings of the site.

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.
  $regions = system_region_list($GLOBALS['theme']);
  foreach (array_keys($regions) as $region) {
    if (!empty($page[$region])) {
      $page[$region]['#theme_wrappers'][] = 'region';
      $page[$region]['#region'] = $region;
    }
  }
}