This example demonstrates how to create an entity.

Parent topics

File

modules/examples/entity_example/entity_example.module, line 10
Hook implementations for the Entity Example module.

Functions

Namesort descending Location Description
entity_example_autoload_info modules/examples/entity_example/entity_example.module Implements hook_autoload_info().
entity_example_basic_add modules/examples/entity_example/entity_example.module Provides a wrapper on the edit form to add a new entity.
entity_example_basic_delete modules/examples/entity_example/entity_example.module Use the controller to delete the entity.
entity_example_basic_edit_delete modules/examples/entity_example/entity_example.module Form deletion handler.
entity_example_basic_form modules/examples/entity_example/entity_example.module Form function to create an entity_example_basic entity.
entity_example_basic_form_submit modules/examples/entity_example/entity_example.module Form submit handler: Submits basic_add_form information.
entity_example_basic_form_validate modules/examples/entity_example/entity_example.module Validation handler for entity_example_basic_add_form form.
entity_example_basic_list_entities modules/examples/entity_example/entity_example.module Returns a render array with all entity_example_basic entities.
entity_example_basic_load modules/examples/entity_example/entity_example.module Fetch a basic object.
entity_example_basic_load_multiple modules/examples/entity_example/entity_example.module Loads multiple basic entities.
entity_example_basic_save modules/examples/entity_example/entity_example.module We save the entity by calling the controller.
entity_example_basic_title modules/examples/entity_example/entity_example.module Callback for a page title when this entity is displayed.
entity_example_basic_uri modules/examples/entity_example/entity_example.module Implements the uri callback.
entity_example_basic_view modules/examples/entity_example/entity_example.module Menu callback to display an entity.
entity_example_entity_info modules/examples/entity_example/entity_example.module Implements hook_entity_info().
entity_example_field_extra_fields modules/examples/entity_example/entity_example.module Implements hook_field_extra_fields().
entity_example_info_page modules/examples/entity_example/entity_example.module Basic information for the page.
entity_example_menu modules/examples/entity_example/entity_example.module Implements hook_menu().
entity_example_permission modules/examples/entity_example/entity_example.module Implements hook_permission().
entity_example_schema modules/examples/entity_example/entity_example.install Implements hook_schema().
entity_example_uninstall modules/examples/entity_example/entity_example.install Implements hook_uninstall().

Classes

Namesort descending Location Description
EntityExampleTestCase modules/examples/entity_example/tests/entity_example.test Functionality tests for entity example module.