There's an ongoing discussion about how there should be CRUD hooks on bundle events, hook_entity_bundle_[create/load/update/delete/etc]
(currently in the context of Drupal 8).
In the mean time, in Drupal 7, what's the closest thing we have to a hook_entity_bundle_create
? To put it another way, how best to define a function that will be called every time an entity bundle is created, where the function can access data about that bundle?
The above link mentions the hook_field_attach
hooks (the Field Attach API), but it's not clear which if any of these hooks will be called reliably on bundle editting.
It's be great to clearly get down what the current equivalent of bundle CRUD hooks are.