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 479
Hook implementations for the Entity Example module.

Code

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