Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When the bean module is uninstalled, the blocks should also be deleted.
see #1351694: Check if bean type class exists when loading bean.
Comment | File | Size | Author |
---|---|---|---|
#3 | bean_clean-1376368-3.patch | 685 bytes | indytechcook |
Comments
Comment #1
mrfelton CreditAttribution: mrfelton commentedI'm not convinced about this. If you install, for example, webform module it creates a content type 'Webform'. You then create a load of webform nodes, and uninstall the module - it doesn't then delete al of the nodes that you had created. They just loose their type association and become something of broken/orphaned nodes.
Bean Blocks are being treated as content in most respects, so I would think it should follow the same mantra as node modules.
Comment #2
indytechcook CreditAttribution: indytechcook commentedSo it's a little different the the webform example. The webform adds a content type, not the content itself. If it was possible to disable the node module, would you want all of the nodes around?
Since uninstall the module will remove the bean table, we also need to remove the instances of the blocks. Otherwise it will get messy.
Comment #3
indytechcook CreditAttribution: indytechcook commentedAttached Patch
Comment #4
saltednutpatch: **** malformed patch at line 30: \ No newline at end of file
Comment #5
indytechcook CreditAttribution: indytechcook commentedhttp://drupal.org/commitlog/commit/22232/0fae552e7ae11c7f60a4731f3bbb5c4...