You are here

function commerce_coupon_update_7006 in Commerce Coupon 7

Implements hook_update_N(). Use new "commerce_coupon_review_pane" view displays.

File

./commerce_coupon.install, line 268
Install, update and uninstall functions for the commerce_coupon module.

Code

function commerce_coupon_update_7006(&$sandbox) {
  if (variable_get('commerce_coupon_checkout_pane_view', 'commerce_coupon_review_pane|default') == 'commerce_coupon_review_pane|default') {
    variable_set('commerce_coupon_checkout_pane_view', 'commerce_coupon_review_pane|checkout');
  }
  if (variable_get('commerce_coupon_review_pane_view', 'commerce_coupon_review_pane|default') == 'commerce_coupon_review_pane|default') {
    variable_set('commerce_coupon_review_pane_view', 'commerce_coupon_review_pane|review');
  }
}