summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaciej.zgadzaj2012-09-21 09:27:31 (GMT)
committer Pedro Cambra2012-09-21 09:27:31 (GMT)
commit8fb88a878090379c6292224acaaf82161b885564 (patch)
tree3657f9f4445d6d49c33fbc35207c12a4e9c0aca3
parent8ac4d93c7d547c3332b0761e9c3aea60054fe0b6 (diff)
Issue #1786470 by maciej.zgadzaj: Fixed Delete module variables on uninstall.
-rw-r--r--commerce_coupon.install7
1 files changed, 6 insertions, 1 deletions
diff --git a/commerce_coupon.install b/commerce_coupon.install
index 06be799..c4d538c 100644
--- a/commerce_coupon.install
+++ b/commerce_coupon.install
@@ -125,6 +125,11 @@ function commerce_coupon_uninstall() {
commerce_delete_instances('commerce_coupon');
commerce_delete_field('commerce_coupon_order_reference');
commerce_delete_field('commerce_coupon_reference');
+
+ // Delete all module variables.
+ variable_del('commerce_coupon_default_code_size');
+ variable_del('commerce_coupon_checkout_pane_view');
+ variable_del('commerce_coupon_review_pane_view');
}
/**
@@ -239,7 +244,7 @@ function commerce_coupon_update_7004(&$sandbox) {
/**
* Implements hook_update_N().
- * Remove all coupon log views.
+ * Remove all coupon log views.
*/
function commerce_coupon_update_7005(&$sandbox) {
if($view = views_get_view('commerce_coupon_log')){