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.
The example doesn't remove the content type when you disable and uninstall.
Cheers Dan
Comment | File | Size | Author |
---|---|---|---|
#3 | flex_slider_delete_content_type-1840288-3.patch | 854 bytes | MorinLuc0 |
Comments
Comment #1
minorOffense CreditAttribution: minorOffense commentedAh. I had used Features to export the node type. I thought for sure it would have handled cleaning stuff up.
I'll add in the cleanup code.
Thanks.
Comment #2
bohemier CreditAttribution: bohemier commentedSo how does one remove the flexslider_example content type? The drupal interface does not allow to remove it, probably because it if provided by features?
Thanks!
Comment #3
MorinLuc0 CreditAttribution: MorinLuc0 commentedHere is a patch that will delete all the Flexslider Example nodes and delete the FlexSlider Example content type.
Comment #4
minorOffense CreditAttribution: minorOffense commentedThis is a bug with core and Features. But we can include this for now until that gets fixed.
But can you update the patch to use node_delete_mulitple instead?
Thanks.
Comment #5
minorOffense CreditAttribution: minorOffense commentedIt also may need to run on hook_disable and not hook_uninstall. But you'd have to double check that.
Comment #6
minorOffense CreditAttribution: minorOffense commentedComment #7
minorOffense CreditAttribution: minorOffense commentedCommitted a fix.
Comment #9
rob_johnston CreditAttribution: rob_johnston commentedJust passing by... noticed that the original request asked to remove the content type but the committed patch only removes the content of that type. The patch from comment 3 does include the deletion of the content type, but looks like that left out of the commit (I tested that and it worked for me).
Comment #10
jbfelix CreditAttribution: jbfelix commentedThe easy way:
1. go to /admin/content/ and delete all "flex_slider_example" nodes
2. go to /admin/structure/types/manage/"flex_slider_example"/delete it will delete it
Comment #12
jenlamptonLooks like this is fixed? If not please re-open.