Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It looks like core is going to provide a system for removing content entities: #2688945: Allow removing a module's content entities prior to module uninstallation.
This would mean we can remove the custom system we added in #2409673: impossible to uninstall Flag.
Comment | File | Size | Author |
---|---|---|---|
#12 | uninstall.png | 60.07 KB | martin107 |
#8 | 2712285-8.patch | 8.59 KB | c.nish2k3 |
Comments
Comment #2
socketwench CreditAttribution: socketwench at FFW commentedThat'd be nice.
Comment #3
joachim CreditAttribution: joachim commentedLooks like #2688945: Allow removing a module's content entities prior to module uninstallation should make it into core fairly soon :)
Comment #4
joachim CreditAttribution: joachim commentedIt's in! hurrah!
Comment #5
BerdirIn 8.2, so you might want to wait until 8.2.0 is out :)
Comment #6
joachim CreditAttribution: joachim commentedThat's due in just over a week now -- October 5, 2016 according to this: https://www.drupal.org/core/release-cycle-overview
Comment #7
joachim CreditAttribution: joachim commentedComment #8
c.nish2k3 CreditAttribution: c.nish2k3 as a volunteer commentedPatch to remove the custom system as this is handled by core now.
Comment #9
joachim CreditAttribution: joachim commentedThat looks like something we should be keeping... I'm surprised our tests pass without it!
Comment #10
BerdirNo, not surprising. List and Clear all were the only local tasks on that page, if there is only one it is not shown anyway, you'd need at least two.
The only reason to keep it would be to make it easier to add some local tasks again later or letting other other modules do that.
Comment #11
joachim CreditAttribution: joachim commentedAh right -- sorry, I misread those as being router items rather than tasks. Monday morning ... :/
Comment #12
martin107 CreditAttribution: martin107 as a volunteer commentedI think this is ready to go.
1) I agree with the idea behind this issue...
2) After a visual scan I can justify every change.
3) Manual testing:-
a) drush -y en flag_follower
b) create a article,
c) flag the node
d) go through flag_follower web page uninstall process see screen shot
e) complete everything has been deleted as expected.
+1 from me.
Comment #14
joachim CreditAttribution: joachim commentedCommitted. Thanks everyone!