You are here

function field_test_entity_add in SimpleTest 7

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

File

tests/field_test.module, line 257

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);
}