diff --git a/panels.install b/panels.install index 1d82544..f8bf52b 100644 --- a/panels.install +++ b/panels.install @@ -405,9 +405,21 @@ function panels_update_7301() { } /** - * Adding universally unique identifiers to panels. + * Add a custom cache table for Panels. */ function panels_update_7302() { + $schema = panels_schema_6(); + + $table_name = 'cache_panels'; + if (!db_table_exists($table_name)) { + db_create_table($table_name, $schema[$table_name]); + } +} + +/** + * Adding universally unique identifiers to panels. + */ +function panels_update_7303() { if (!module_load_include('inc', 'ctools', 'includes/uuid')) { throw new DrupalUpdateException(t('Ctools UUID support not detected. You must update to a more recent version of the ctools module.')); } @@ -470,7 +482,7 @@ function panels_update_7302() { if ($displays = panels_load_displays($dids)) { foreach ($displays as $display) { // A display save also triggers pane saves. - panels_save_display($display); + //panels_save_display($display); } $msg[] = t('Generated UUIDs for database-based panel displays and panes.'); } @@ -481,14 +493,3 @@ function panels_update_7302() { return implode("\n", $msg); } -/** - * Add a custom cache table for Panels. - */ -function panels_update_7303() { - $schema = panels_schema_6(); - - $table_name = 'cache_panels'; - if (!db_table_exists($table_name)) { - db_create_table($table_name, $schema[$table_name]); - } -}