summaryrefslogtreecommitdiff
path: root/modules/toolbar
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-29 05:19:50 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-29 05:19:50 +0000
commit10eec627bab98eb1a04c333f6cc9594e81a6b49a (patch)
tree41d601d5e1dec8e7fb645cf2da4b25a91b30ffb1 /modules/toolbar
parent366a52b7ebbb4a69c70e143cf532ee6824b8784a (diff)
downloadbrdo-10eec627bab98eb1a04c333f6cc9594e81a6b49a.tar.gz
brdo-10eec627bab98eb1a04c333f6cc9594e81a6b49a.tar.bz2
#655736 by David_Rothstein: De-couple Dashboard and Toolbar modules from Overlay.
Diffstat (limited to 'modules/toolbar')
-rw-r--r--modules/toolbar/toolbar.module11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module
index 7c82d09a5..c245a8fa7 100644
--- a/modules/toolbar/toolbar.module
+++ b/modules/toolbar/toolbar.module
@@ -153,12 +153,15 @@ function toolbar_preprocess_html(&$vars) {
/**
* Implements hook_system_info_alter().
*
- * If the overlay module is enabled, indicate that the 'page_top' region (in
- * which the toolbar will be displayed) is one of the overlay supplemental
- * regions that should be refreshed whenever its content is updated.
+ * 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.
*/
function toolbar_system_info_alter(&$info, $file, $type) {
- if (module_exists('overlay') && $type == 'theme') {
+ if ($type == 'theme') {
$info['overlay_supplemental_regions'][] = 'page_top';
}
}