From c912008307dd49b5e3e85c78069153f2f9f70411 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 2 Dec 2009 07:28:22 +0000 Subject: =?UTF-8?q?#610234=20by=20G=C3=A1bor=20Hojtsy,=20ksenzee,=20cwgord?= =?UTF-8?q?on7,=20David=5FRothstein,=20seutje,=20marcvangend,=20sun,=20Jos?= =?UTF-8?q?huaRogers,=20markus=5Fpetrux,=20Bojhan,=20Rob=20Loach,=20Everet?= =?UTF-8?q?t=20Zufelt,=20drifter,=20markboulton,=20leisareichelt,=20et=20a?= =?UTF-8?q?l:=20Added=20Overlay=20module=20to=20core,=20which=20shows=20ad?= =?UTF-8?q?ministrative=20pages=20in=20a=20JS=20overlay,=20retaining=20con?= =?UTF-8?q?text=20on=20the=20front-end=20site.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/shortcut/shortcut.module | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/shortcut/shortcut.module') 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'; + } +} -- cgit v1.2.3