diff --git a/gallery.install b/gallery.install index 573fb79808149f325430718a82c8e55e57ff7892..74e60c68764acb4d55f115cadcdb7a67933491a1 100644 --- a/gallery.install +++ b/gallery.install @@ -53,6 +53,11 @@ function gallery_update_1() { // Update variables $ret = gallery_update_variables($migrate, $obsolete); + // Update the blocks + $ret[] = update_sql("UPDATE {blocks} SET delta = 'image-0' WHERE module = 'gallery' AND delta = 0"); + $ret[] = update_sql("UPDATE {blocks} SET delta = 'navigation' WHERE module = 'gallery' AND delta = 1"); + $ret[] = update_sql("UPDATE {blocks} SET delta = 'grid-0' WHERE module = 'gallery' AND delta = 2"); + // Mark gallery configuration invalid. This does NOT reset the configuration, but // forces the user to run the install wizard to (re)set and verify critical settings. variable_set('gallery_valid', FALSE);