summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/shortcut/shortcut.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module
index a8c24651b..ab78a459f 100644
--- a/modules/shortcut/shortcut.module
+++ b/modules/shortcut/shortcut.module
@@ -263,10 +263,8 @@ function shortcut_set_save(&$shortcut_set) {
$shortcut_set->set_name = shortcut_set_get_unique_name();
$return = drupal_write_record('shortcut_set', $shortcut_set);
}
- // If links were provided for the set, save them, replacing any that were
- // there before.
+ // If links were provided for the set, save them.
if (isset($shortcut_set->links)) {
- menu_delete_links($shortcut_set->set_name);
foreach ($shortcut_set->links as &$link) {
// Do not specifically associate these links with the shortcut module,
// since other modules may make them editable via the menu system.