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

modules/toolbar/toolbar.module, line 177
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';
  }
}