function comment_form_build_preview

comment_form_build_preview($form, &$form_state)

Build a preview from submitted form values.

File

modules/comment/comment.module, line 2057
Enables users to comment on published content.

Code

function comment_form_build_preview($form, &$form_state) {
  $comment = comment_form_submit_build_comment($form, $form_state);
  $form_state['comment_preview'] = comment_preview($comment);
  $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!comment!comment.module/function/comment_form_build_preview/7.x