Commit 72e43b4f authored by Dries's avatar Dries
Browse files

- Patch #145390 by Eaton: fix for node forms that implement submit hooks.

parent 667bf953
......@@ -2319,6 +2319,12 @@ function node_form_submit($form_values, $form, &$form_state) {
form_execute_handlers('submit', $form, $form_state);
// Normally, we don't want people doing anything even remotely like this.
// For the node submission form, however, it's necessary. Submit handlers
// alter the $form_values collection to determine what ultimately makes it
// into the final $node object.
$form_values = $form_state['values'];
// Fix up the node when required:
$node = node_submit($form_values);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment