Skip to content

Commit

Permalink
Issue #2674698 by slashrsm, Primsi: [Chase IEF] Rely on IEF for submi…
Browse files Browse the repository at this point in the history
…t and save
  • Loading branch information
slashrsm committed Feb 26, 2016
1 parent ca46b72 commit a3faf0b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a
'inline_entity_form' => [
'#type' => 'inline_entity_form',
'#op' => 'add',
'#handle_submit' => FALSE,
'#entity_type' => $this->configuration['entity_type'],
'#bundle' => $this->configuration['bundle'],
],
Expand All @@ -52,11 +51,6 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a
* {@inheritdoc}
*/
public function submit(array &$element, array &$form, FormStateInterface $form_state) {
// We handle submit on our own in order to take control over what's going on.
foreach ($element['inline_entity_form']['#ief_element_submit'] as $function) {
$function($element['inline_entity_form'], $form_state);
}

$this->selectEntities([$element['inline_entity_form']['#entity']], $form_state);
}

Expand Down

0 comments on commit a3faf0b

Please sign in to comment.