function toolbar_system_info_alter

7.x toolbar.module toolbar_system_info_alter(&$info, $file, $type)

Implements hook_system_info_alter().

Indicate that the 'page_top' region (in which the toolbar will be displayed) is an overlay supplemental region that should be refreshed whenever its content is updated.

This information is provided for any module that might need to use it, not just the core Overlay module.

File

drupal-7.x/modules/toolbar/toolbar.module, line 172
Administration toolbar for quick access to top level administration items.

Code

function toolbar_system_info_alter(&$info, $file, $type) {
  if ($type == 'theme') {
    $info['overlay_supplemental_regions'][] = 'page_top';
  }
}