You are here

function system_page_alter in Drupal 7

Implements hook_page_alter().

File

modules/system/system.module, line 3547
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.
  foreach (system_region_list($GLOBALS['theme'], REGIONS_ALL, FALSE) as $region) {
    if (!empty($page[$region])) {
      $page[$region]['#theme_wrappers'][] = 'region';
      $page[$region]['#region'] = $region;
    }
  }
}