function system_page_alter

7.x system.module system_page_alter(&$page)

Implements hook_page_alter().

File

drupal/modules/system/system.module, line 3469
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;
    }
  }
}