summaryrefslogtreecommitdiff
path: root/modules/field/tests
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-20 06:49:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-20 06:49:47 +0000
commit4cc8ae69a1df3d7ac1f33122c1a6afa6ba65fc0f (patch)
treefef7107ec164b66c946453221d33ed5ccd193450 /modules/field/tests
parent9abb496d8a32da3e644d6c0095a89d76544ba211 (diff)
downloadbrdo-4cc8ae69a1df3d7ac1f33122c1a6afa6ba65fc0f.tar.gz
brdo-4cc8ae69a1df3d7ac1f33122c1a6afa6ba65fc0f.tar.bz2
#830704 by fago, effulgentsia, Frando: Fixed entity forms cannot be properly extended.
Diffstat (limited to 'modules/field/tests')
-rw-r--r--modules/field/tests/field_test.entity.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/field/tests/field_test.entity.inc b/modules/field/tests/field_test.entity.inc
index 37695bd49..4c0269d3e 100644
--- a/modules/field/tests/field_test.entity.inc
+++ b/modules/field/tests/field_test.entity.inc
@@ -355,7 +355,6 @@ function field_test_entity_form($form, &$form_state, $entity, $add = FALSE) {
}
// Add field widgets.
- $form['#builder_function'] = 'field_test_entity_form_submit_builder';
field_attach_form('test_entity', $entity, $form, $form_state);
if (!$add) {
@@ -387,7 +386,7 @@ function field_test_entity_form_validate($form, &$form_state) {
* Submit handler for field_test_entity_form().
*/
function field_test_entity_form_submit($form, &$form_state) {
- $entity = $form['#builder_function']($form, $form_state);
+ $entity = field_test_entity_form_submit_build_test_entity($form, $form_state);
$insert = empty($entity->ftid);
field_test_entity_save($entity);
@@ -407,7 +406,7 @@ function field_test_entity_form_submit($form, &$form_state) {
/**
* Updates the form state's entity by processing this submission's values.
*/
-function field_test_entity_form_submit_builder($form, &$form_state) {
+function field_test_entity_form_submit_build_test_entity($form, &$form_state) {
$entity = $form_state['test_entity'];
entity_form_submit_build_entity('test_entity', $entity, $form, $form_state);
return $entity;