Issue #2169875 by yched: Remnant D7 code in NodeFormController needlessly skips submitForm() .

8.0.x
webchick 2014-01-24 00:05:05 -08:00
parent 6c7d2d87d1
commit 58828f547e
1 changed files with 0 additions and 7 deletions

View File

@ -220,13 +220,6 @@ class NodeFormController extends ContentEntityFormController {
'#default_value' => $node->isSticky(),
);
// This form uses a button-level #submit handler for the form's main submit
// action. node_form_submit() manually invokes all form-level #submit
// handlers of the form. Without explicitly setting #submit, Form API would
// auto-detect node_form_submit() as submit handler, but that is the
// button-level #submit handler for the 'Save' action.
$form += array('#submit' => array());
return parent::form($form, $form_state, $node);
}