summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 7a1835302..916018c80 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -2319,6 +2319,12 @@ function node_form_submit($form_values, $form, &$form_state) {
unset($form_state['submit_handlers']);
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);