You are here

function commerce_coupon_update_7005 in Commerce Coupon 7

Implements hook_update_N(). Remove all coupon log views.

File

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

Code

function commerce_coupon_update_7005(&$sandbox) {
  if ($view = views_get_view('commerce_coupon_log')) {
    $view
      ->delete(TRUE);
  }
}