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

6.x
Dries Buytaert 2007-05-20 07:28:05 +00:00
parent bb812c1a9e
commit be3dea205f
1 changed files with 5 additions and 0 deletions

View File

@ -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);