function commerce_shipping_uninstall in Commerce Shipping 7
Same name and namespace in other branches
- 7.2 commerce_shipping.install \commerce_shipping_uninstall()
Implements hook_uninstall().
File
- ./
commerce_shipping.install, line 25 - Contains updade 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,
));
}
}
}