I am happy to write a patch to add support for the inline entity form module. Going to need it for a project I am working on so will work on the patch and upload here tomorrow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adamelleston’s picture

Patch will contain the integration code to add basic support for "Inline entity form" to this module "Box entity types".

adamelleston’s picture

I haven't done many patches but I think this is right. For me this allows me to choose which entity boxes (bundles) to allow an node entity reference field, with the inline entity form widget, to add inline using the inline entity form module.

Would be great to get some feedback on the patch

Albert Volkman’s picture

Status: Active » Needs work

@adamelleston although its good to clean up whitespace errors, its typically considered good form to do that as a separate task. By including those fixes with the issue it makes it harder to review your patch.

acrosman’s picture

I re-rolled the patch to clean out the white space changes and resulting code layout a bit.

acrosman’s picture

Status: Needs work » Needs review
kbasarab’s picture

The patch above does work for nodes pretty well. What is sticking is if you try to use this with a custom entity type generated via ECK it is not working. If you do the same with Inline Entity Form and ECK on a node type then it works as well so the problem lies either in boxes or entity_boxes. The other interesting factor is I am not seeing in the database where the targets for the field are actually stored.

The entity_box with and IEF to a node that is currently working is showing its field_*_data table as having zero records currently.