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.
At present revert is the same as delete, the problem is that delete operation removes bean contents and fields attached to the bean_type bundle. The result of revert must be the same as if you revert from features: only delete the bean_type from database.
Comment | File | Size | Author |
---|---|---|---|
#1 | bean-1785950.patch | 7.36 KB | jonhattan |
Comments
Comment #1
jonhattanPatch to separate both operations. It includes code from patch in #1710256-7: «Delete block type» button misplaced.
Comment #2
indytechcook CreditAttribution: indytechcook commentedThanks jonhattan! Overall I like where this is going. Just a few comments.
Good check!
We can't assume that all bean types are provided by ctools exportables. This page is used by both bean types provided by beam_admin_ui and custom bean types.
Thanks. This wasn't available when I first made bean
Comment #3
indytechcook CreditAttribution: indytechcook commentedThanks http://drupal.org/commitlog/commit/22232/ba46ba22c636d9dca047d3cea85ad7b...
Comment #5
pingwin4egJust a post scriptum:
in this patch you are using function ctools_export_crud_delete() that is not included.
@see #1856876: Call to undefined function ctools_export_crud_delete().