1 entity_test.module | entity_test_entity_info() |
Implements hook_entity_info().
File
- core/
modules/ entity/ tests/ entity_test/ entity_test.module, line 10 - Test module for the entity API providing an entity type for testing.
Code
function entity_test_entity_info() {
$return = array(
'entity_test' => array(
'label' => t('Test entity'),
'entity class' => 'TestEntity',
'controller class' => 'EntityDatabaseStorageController',
'base table' => 'entity_test',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'id',
),
),
);
return $return;
}