You are here

function entity_example_basic_delete in Examples for Developers 7

Use the controller to delete the entity.

Related topics

1 call to entity_example_basic_delete()
entity_example_basic_edit_delete in entity_example/entity_example.module
Form deletion handler.

File

entity_example/entity_example.module, line 491
Implements the basic functionality required to create and display an entity.

Code

function entity_example_basic_delete($entity) {
  entity_get_controller('entity_example_basic')
    ->delete($entity);
}