function node_form_build_preview
node_form_build_preview($form, &$form_state)
Form submission handler for node_form().
Handles the 'Preview' button on the node form.
See also
File
- modules/node/node.pages.inc, line 356
- Page callbacks for adding, editing, deleting, and revisions management for content.
Code
function node_form_build_preview($form, &$form_state) { $node = node_form_submit_build_node($form, $form_state); $form_state['node_preview'] = node_preview($node); $form_state['rebuild'] = TRUE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.pages.inc/function/node_form_build_preview/7.x