Commit be3dea20 authored by Dries's avatar Dries

- Patch #145390 by eaton: node form broken for modules that implement submit hooks

parent bb812c1a
......@@ -2314,6 +2314,11 @@ function theme_node_log_message($log) {
function node_form_submit($form_values, $form, &$form_state) {
global $user;
// We do not want to execute button level handlers, we want the form level
// handlers to go in and change the submitted values.
unset($form_state['submit_handlers']);
form_execute_handlers('submit', $form, $form_state);
// 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