Skip to content
Snippets Groups Projects
Commit 6e04adf9 authored by Jakob Larsen's avatar Jakob Larsen
Browse files

Issue #1183432 by googletorp: Add uninstall rutine.

parent 2f3beac4
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,19 @@
* @file Contains updade hooks for the commerce_shipping module.
*/
/**
* Implements hook_uninstall().
*/
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));
}
}
}
/**
* Add address field for the commerce_shipping customer profile.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment