Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
adamelleston CreditAttribution: adamelleston commentedPatch will contain the integration code to add basic support for "Inline entity form" to this module "Box entity types".
Comment #2
adamelleston CreditAttribution: adamelleston commentedI 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
Comment #3
Albert Volkman CreditAttribution: Albert Volkman commented@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.
Comment #4
acrosmanI re-rolled the patch to clean out the white space changes and resulting code layout a bit.
Comment #5
acrosmanComment #6
kbasarab CreditAttribution: kbasarab commentedThe 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.