function toolbar_system_info_alter in Drupal 7
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 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';
}
}