You are here

function node_form_submit_build_node in Drupal 6

Same name and namespace in other branches
  1. 7 modules/node/node.pages.inc \node_form_submit_build_node()

Build a node by processing submitted form values and prepare for a form rebuild.

3 calls to node_form_submit_build_node()
node_form_build_preview in modules/node/node.pages.inc
node_form_submit in modules/node/node.pages.inc
poll_more_choices_submit in modules/poll/poll.module
Submit handler to add more choices to a poll form. This handler is used when javascript is not available. It makes changes to the form state and the entire form is rebuilt during the page reload.
2 string references to 'node_form_submit_build_node'
book_form_alter in modules/book/book.module
Implementation of hook_form_alter(). Adds the book fieldset to the node form.
_upload_form in modules/upload/upload.module

File

modules/node/node.pages.inc, line 486
Page callbacks for adding, editing, deleting, and revisions management for content.

Code

function node_form_submit_build_node($form, &$form_state) {

  // Unset any button-level handlers, execute all the form-level submit
  // functions to process the form values into an updated node.
  unset($form_state['submit_handlers']);
  form_execute_handlers('submit', $form, $form_state);
  $node = node_submit($form_state['values']);
  $form_state['node'] = (array) $node;
  $form_state['rebuild'] = TRUE;
  return $node;
}