You are here

function comment_form_submit in Drupal 4

Same name and namespace in other branches
  1. 5 modules/comment/comment.module \comment_form_submit()
  2. 6 modules/comment/comment.module \comment_form_submit()
  3. 7 modules/comment/comment.module \comment_form_submit()

File

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

Code

function comment_form_submit($form_id, $form_values) {
  $form_values = _comment_form_submit($form_values);
  if ($cid = comment_save($form_values)) {
    return array(
      'node/' . $form_values['nid'],
      NULL,
      "comment-{$cid}",
    );
  }
}