You are here

function commerce_shipping_uninstall in Commerce Shipping 7.2

Same name and namespace in other branches
  1. 7 commerce_shipping.install \commerce_shipping_uninstall()

Implements hook_uninstall().

File

./commerce_shipping.install, line 24
Contains update hooks for the commerce_shipping module.

Code

function commerce_shipping_uninstall() {

  // Delete shipping rules.
  $rules = rules_config_load_multiple(FALSE);
  foreach ($rules as $rule) {
    if (strpos($rule->name, 'commerce_shipping') === 0) {
      rules_config_delete(array(
        $rule->id,
      ));
    }
  }
}