function comment_form_build_preview

Build a preview from submitted form values.

1 string reference to 'comment_form_build_preview'
comment_form in modules/comment/comment.module
Generate the basic commenting form, for appending to a node or display on a separate page.

File

modules/comment/comment.module, line 2071

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.