Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
When module is uninstalled it should clean-up configurations. Because after uninstall -> install is not possible because configuration already exists.
Proposed resolution
Add uninstall hook that will remove configurations provided with installation of module.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3043642-remove-config-on-uninstall.patch | 9.34 KB | KarenS |
#2 | taxonomy_place-3043642-2.patch | 1.11 KB | RoshniPatel.addweb |
Comments
Comment #2
RoshniPatel.addweb CreditAttribution: RoshniPatel.addweb at AddWeb Solution Pvt. Ltd. commented@brooke_heaton, Please Check, Here I attached a patch for the same, Let me know if any further changes are required.
Thanks!
Comment #3
KarenS CreditAttribution: KarenS at Lullabot commentedThat's actually not the approved way to do this, it should be done by altering the configuration. This won't remove it if it's already there without the enforced dependency, but it's not safe to remove it automatically because it could be in use on production sites. So I'm just displaying a message.
Comment #5
KarenS CreditAttribution: KarenS at Lullabot commented