99c87a66c620e2a9f9b19bf095fdc4ae9b561c10 Fix update method to return the message string. diff --git a/panels.install b/panels.install index 9ee4d93..6dd5dc9 100644 --- a/panels.install +++ b/panels.install @@ -506,7 +506,6 @@ function panels_update_7303() { function panels_update_7304() { // Load the schema. $schema = panels_schema_7(); - $msg = array(); // Add the window_title column to the display table. $table = 'panels_display'; @@ -515,10 +514,7 @@ function panels_update_7304() { if (!db_field_exists($table, $field)) { $spec = $schema[$table]['fields'][$field]; db_add_field($table, $field, $spec); - $msg[] = t('Added panels_display.window_title column.'); - } - - if (empty($msg)) { - $msg[] = t('window_title column already present in the panels_display table.'); + return t('Added panels_display.window_title column.'); } + return t('Window_title column already present in the panels_display table.'); }