function node_form_build_preview
Form submission handler for node_form().
Handles the 'Preview' button on the node form.
See also
1 string reference to 'node_form_build_preview'
- node_form in modules/
node/ node.pages.inc - Form constructor for the node add/edit form.
File
-
modules/
node/ node.pages.inc, line 356
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.