You are here

public function NodeInlineEntityFormController::entityFormSubmit in Inline Entity Form 7

Overrides EntityInlineEntityFormController::entityFormSubmit().

Overrides EntityInlineEntityFormController::entityFormSubmit

File

includes/node.inline_entity_form.inc, line 77
Defines the inline entity form controller for Nodes.

Class

NodeInlineEntityFormController
@file Defines the inline entity form controller for Nodes.

Code

public function entityFormSubmit(&$entity_form, &$form_state) {
  parent::entityFormSubmit($entity_form, $form_state);
  node_submit($entity_form['#entity']);
  $child_form_state = form_state_defaults();
  $child_form_state['values'] = drupal_array_get_nested_value($form_state['values'], $entity_form['#parents']);
  foreach (module_implements('node_submit') as $module) {
    $function = $module . '_node_submit';
    $function($entity_form['#entity'], $entity_form, $child_form_state);
  }
}