1 entity_example.module entity_example_basic_save(&$entity)

We save the entity by calling the controller.

Related topics

File

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

Code

function entity_example_basic_save(&$entity) {
  return entity_get_controller('entity_example_basic')->save($entity);
}