Closed (fixed)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 14:40 UTC
Updated:
6 Jun 2012 at 18:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
joachim commentedHere's a patch which seems to work. At least, nothing blows up with it ... inline_entity_form_field_widget_form() has to be the longest function I've ever seen so I'm not 100% sure of what I'm doing in there :)
Comment #2
joachim commentedAdded some docs about this feature.
Comment #3
bojanz commentedOkay, so we have two problems:
1) Type forms contain things that can be added automatically (the pre_render callback, the final #element_validate callback, the build_info).
2) The inline_entity_form_field_widget_form() function is a huge barely-understandable monster.
Here's a refactoring that handles #1 and makes #2 better.
This was also a requirement for easily adding a form alter hook for type forms without making #2 even worse.
Comment #4
bojanz commentedAaand, committed. Feel free to comment on the patch, it's never too late for a followup :)
Comment #5
joachim commented> 2) The inline_entity_form_field_widget_form() function is a huge barely-understandable monster
Heh, yes. I barely understand it :(
The patch does look like it simplifies quite a few things. Will try another stab at implementing something with this soon!