You are here

function markup_build_node in Markup 6

Build a node by processing submitted form values.

1 call to markup_build_node()
markup_widget_process in ./markup.module
Process the markup_widget element.

File

./markup.module, line 349
Defines a field type for displaying markup on the node/edit form.

Code

function markup_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']);
  return $node;
}