summaryrefslogtreecommitdiff
path: root/sites/all/modules/entity/tests/entity_feature.module
blob: c2c9fbf04e1379e4048f8e19cb9bc1caea0236e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
}