1 comment.module comment_form_build_preview($form, &$form_state)

Form submission handler for the 'preview' button in comment_form().

File

core/modules/comment/comment.module, line 1978
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;
}