You are here

function commerce_payment_update_7103 in Commerce Core 7

Disable the payment checkout pane on the review form to preserve prior behavior.

File

modules/payment/commerce_payment.install, line 302
Installation functions for Drupal Commerce Payment.

Code

function commerce_payment_update_7103() {
  if (!db_table_exists('commerce_checkout_pane')) {
    return t('Checkout module is disabled, skipping update.');
  }
  db_update('commerce_checkout_pane')
    ->fields(array(
    'review' => 0,
  ))
    ->condition('pane_id', 'commerce_payment')
    ->execute();
  return t('Payment checkout pane disabled on the review form; enable it if desired in the Payment checkout pane settings form.');
}