diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-02 07:28:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-02 07:28:22 +0000 |
commit | c912008307dd49b5e3e85c78069153f2f9f70411 (patch) | |
tree | 6e219858505bd38130a7d679488d3a41e689ce1d /modules/shortcut/shortcut.module | |
parent | cfc96df9a7181526cb1c71cf4e39886026c668fe (diff) | |
download | brdo-c912008307dd49b5e3e85c78069153f2f9f70411.tar.gz brdo-c912008307dd49b5e3e85c78069153f2f9f70411.tar.bz2 |
#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
Diffstat (limited to 'modules/shortcut/shortcut.module')
-rw-r--r-- | modules/shortcut/shortcut.module | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module index 92bd58c77..225cb8e32 100644 --- a/modules/shortcut/shortcut.module +++ b/modules/shortcut/shortcut.module @@ -330,6 +330,7 @@ function shortcut_set_assign_user($shortcut_set, $account) { ->key(array('uid' => $account->uid)) ->fields(array('set_name' => $shortcut_set->set_name)) ->execute(); + drupal_static_reset('shortcut_current_displayed_set'); } /** @@ -600,3 +601,16 @@ function shortcut_preprocess_page(&$variables) { $variables['add_or_remove_shortcut'] = drupal_render($variables['page']['add_or_remove_shortcut']); } } + +/** + * Implements hook_system_info_alter(). + * + * If the overlay module is enabled, indicate that the link for adding or + * removing shortcuts is one of the page "regions" that should display in the + * overlay. + */ +function shortcut_system_info_alter(&$info, $file, $type) { + if (module_exists('overlay') && $type == 'theme') { + $info['overlay_regions'][] = 'add_or_remove_shortcut'; + } +} |