function inline_entity_form_cleanup_row_form_state in Inline Entity Form 7
Same name and namespace in other branches
- 8 inline_entity_form.module \inline_entity_form_cleanup_row_form_state()
Button #submit callback: Cleans up form state for a closed entity row form.
Parameters
$form: The complete parent form.
$form_state: The form state of the parent form.
1 string reference to 'inline_entity_form_cleanup_row_form_state'
- inline_entity_form_entity_form in ./
inline_entity_form.module - Wraps and returns the entity form provided by the passed-in controller.
File
- ./
inline_entity_form.module, line 1460 - Provides a widget for inline management (creation, modification, removal) of referenced entities. The primary use case is the parent -> children one (for example, order -> line items), where the child entities are never managed outside the…
Code
function inline_entity_form_cleanup_row_form_state($form, &$form_state) {
$element = inline_entity_form_get_element($form, $form_state);
$delta = $form_state['triggering_element']['#ief_row_delta'];
$entity_form = $element['entities'][$delta]['form'];
inline_entity_form_cleanup_entity_form_state($entity_form, $form_state);
}