Closed (won't fix)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2014 at 23:52 UTC
Updated:
18 Aug 2014 at 22:19 UTC
Jump to comment: Most recent
Comments
Comment #1
bojanz commentedThe subforms are not built as real forms, hence the default alter hook not firing. This is usually a good thing, because the context of the inline form is sufficiently different that you might not want the same alterations applying to the main form and to the subform.
Use hook_inline_entity_form_entity_form_alter() which is documented in inline_entity_form.api.php
Comment #2
jantoine commented@bojanz,
Thanks for the quick feedback. I had seen that hook but wanted to be sure that not calling form alters was expected behaviour. I was able to quickly implement the hook and pass the $form and $form_state variables to the existing alter hook!