function entity_test_add

Menu callback: displays the 'Add new entity_test' form.

Return value

array The processed form for a new entity_test.

See also

entity_test_menu()

1 string reference to 'entity_test_add'
entity_test_menu in drupal/core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/entity_test/entity_test.module, line 81
Test module for the entity API providing an entity type for testing.

Code

function entity_test_add() {
  drupal_set_title(t('Create an entity_test'));
  $entity = entity_create('entity_test', array());
  return entity_get_form($entity);
}