Mercurial > hg > rr-repo
view sites/all/modules/entity/tests/entity_feature.module @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
parents | |
children |
line wrap: on
line source
<?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; }