diff options
Diffstat (limited to 'sites/all/modules/entity/tests/entity_feature.module')
-rw-r--r-- | sites/all/modules/entity/tests/entity_feature.module | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sites/all/modules/entity/tests/entity_feature.module b/sites/all/modules/entity/tests/entity_feature.module new file mode 100644 index 000000000..c2c9fbf04 --- /dev/null +++ b/sites/all/modules/entity/tests/entity_feature.module @@ -0,0 +1,32 @@ +<?php + +/** + * @file + * Test module providing some entities in code. + */ + +/** + * Implements hook_default_entity_test_type(). + */ +function entity_feature_default_entity_test_type() { + $types['main'] = entity_create('entity_test_type', array( + 'name' => 'main', + 'label' => t('Main test type'), + 'weight' => 0, + 'locked' => TRUE, + )); + + // Types used during CRUD testing. + $types['test'] = entity_create('entity_test_type', array( + 'name' => 'test', + 'label' => 'label', + 'weight' => 0, + )); + $types['test2'] = entity_create('entity_test_type', array( + 'name' => 'test2', + 'label' => 'label2', + 'weight' => 2, + )); + + return $types; +} |