function comment_form_submit in Drupal 5
Same name and namespace in other branches
- 4 modules/comment.module \comment_form_submit()
- 6 modules/comment/comment.module \comment_form_submit()
- 7 modules/comment/comment.module \comment_form_submit()
File
- modules/
comment/ comment.module, line 1669 - 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}",
);
}
}