diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-29 05:19:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-29 05:19:50 +0000 |
commit | 10eec627bab98eb1a04c333f6cc9594e81a6b49a (patch) | |
tree | 41d601d5e1dec8e7fb645cf2da4b25a91b30ffb1 /modules/dashboard/dashboard.module | |
parent | 366a52b7ebbb4a69c70e143cf532ee6824b8784a (diff) | |
download | brdo-10eec627bab98eb1a04c333f6cc9594e81a6b49a.tar.gz brdo-10eec627bab98eb1a04c333f6cc9594e81a6b49a.tar.bz2 |
#655736 by David_Rothstein: De-couple Dashboard and Toolbar modules from Overlay.
Diffstat (limited to 'modules/dashboard/dashboard.module')
-rw-r--r-- | modules/dashboard/dashboard.module | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/dashboard/dashboard.module b/modules/dashboard/dashboard.module index 75d434cbe..2bde008a9 100644 --- a/modules/dashboard/dashboard.module +++ b/modules/dashboard/dashboard.module @@ -161,9 +161,10 @@ function dashboard_page_build(&$page) { function dashboard_system_info_alter(&$info, $file, $type) { if ($type == 'theme') { $info['regions'] += dashboard_region_descriptions(); - if (module_exists('overlay')) { - $info['overlay_regions'] = !empty($info['overlay_regions']) ? array_merge($info['overlay_regions'], dashboard_regions()) : dashboard_regions(); - } + // Indicate that these regions are intended to be displayed whenever the + // dashboard is displayed in an overlay. This information is provided for + // any module that might need to use it, not just the core Overlay module. + $info['overlay_regions'] = !empty($info['overlay_regions']) ? array_merge($info['overlay_regions'], dashboard_regions()) : dashboard_regions(); } } |