You are here

public function EntityExampleBasicControllerInterface::save in Examples for Developers 7

Save an entity.

Parameters

object $entity: The entity to save.

1 method overrides EntityExampleBasicControllerInterface::save()
EntityExampleBasicController::save in entity_example/entity_example.module
Saves the custom fields using drupal_write_record().

File

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

Class

EntityExampleBasicControllerInterface
EntityExampleBasicControllerInterface definition.

Code

public function save($entity);