commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / entity / tests / entity_feature.module
1 <?php
2
3 /**
4 * @file
5 * Test module providing some entities in code.
6 */
7
8 /**
9 * Implements hook_default_entity_test_type().
10 */
11 function entity_feature_default_entity_test_type() {
12 $types['main'] = entity_create('entity_test_type', array(
13 'name' => 'main',
14 'label' => t('Main test type'),
15 'weight' => 0,
16 'locked' => TRUE,
17 ));
18
19 // Types used during CRUD testing.
20 $types['test'] = entity_create('entity_test_type', array(
21 'name' => 'test',
22 'label' => 'label',
23 'weight' => 0,
24 ));
25 $types['test2'] = entity_create('entity_test_type', array(
26 'name' => 'test2',
27 'label' => 'label2',
28 'weight' => 2,
29 ));
30
31 return $types;
32 }