function toolbar_system_info_alter
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
Code
function toolbar_system_info_alter(&$info, $file, $type) {
if ($type == 'theme') {
$info['overlay_supplemental_regions'][] = 'page_top';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.