1 entity_example.install | entity_example_uninstall() |
Implements hook_uninstall().
At uninstall time we'll notify field.module that the entity was deleted so that attached fields can be cleaned up.
Related topics
File
- modules/
examples/ entity_example/ entity_example.install, line 69 - Install for a basic entity - need to create the base table for our entity. This table can have as many columns as you need to keep track of entity-specific data that will not be added via attached fields. The minimum information for the entity to work…
Code
function entity_example_uninstall() {
field_attach_delete_bundle('entity_example_basic', 'first_example_bundle');
}