function field_test_entity_add

cis7 field_test.entity.inc field_test_entity_add($fttype)
cle7 field_test.entity.inc field_test_entity_add($fttype)
elmsmedia7 field_test.entity.inc field_test_entity_add($fttype)
icor7 field_test.entity.inc field_test_entity_add($fttype)
meedjum_blog7 field_test.entity.inc field_test_entity_add($fttype)
mooc7 field_test.entity.inc field_test_entity_add($fttype)

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

1 string reference to 'field_test_entity_add'
field_test_menu in modules/field/tests/field_test.module
Implements hook_menu().

File

modules/field/tests/field_test.entity.inc, line 326
Defines an entity type.

Code

function field_test_entity_add($fttype) {
  $fttype = str_replace('-', '_', $fttype);
  $entity = (object) array('fttype' => $fttype);
  drupal_set_title(t('Create test_entity @bundle', array('@bundle' => $fttype)), PASS_THROUGH);
  return drupal_get_form('field_test_entity_form', $entity, TRUE);
}