HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/public_html/sites/all/modules/entity/tests/entity_feature.module
<?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;
}