entity_feature.module 675 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * @file
  4. * Test module providing some entities in code.
  5. */
  6. /**
  7. * Implements hook_default_entity_test_type().
  8. */
  9. function entity_feature_default_entity_test_type() {
  10. $types['main'] = entity_create('entity_test_type', array(
  11. 'name' => 'main',
  12. 'label' => t('Main test type'),
  13. 'weight' => 0,
  14. 'locked' => TRUE,
  15. ));
  16. // Types used during CRUD testing.
  17. $types['test'] = entity_create('entity_test_type', array(
  18. 'name' => 'test',
  19. 'label' => 'label',
  20. 'weight' => 0,
  21. ));
  22. $types['test2'] = entity_create('entity_test_type', array(
  23. 'name' => 'test2',
  24. 'label' => 'label2',
  25. 'weight' => 2,
  26. ));
  27. return $types;
  28. }