Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce_shipping-3050162
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
commerce_shipping-3050162
Commits
6e04adf9
Commit
6e04adf9
authored
13 years ago
by
Jakob Larsen
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1183432
by googletorp: Add uninstall rutine.
parent
2f3beac4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commerce_shipping.install
+13
-0
13 additions, 0 deletions
commerce_shipping.install
with
13 additions
and
0 deletions
commerce_shipping.install
+
13
−
0
View file @
6e04adf9
...
...
@@ -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.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment