1 comment.admin.inc comment_confirm_delete_submit($form, &$form_state)

Form submission handler for comment_confirm_delete().

File

core/modules/comment/comment.admin.inc, line 302
Admin page callbacks for the Comment module.

Code

function comment_confirm_delete_submit($form, &$form_state) {
  $comment = $form['#comment'];
  // Delete the comment and its replies.
  comment_delete($comment->cid);
  backdrop_set_message(t('The comment and all its replies have been deleted.'));
  watchdog('content', 'Deleted comment @cid and its replies.', array('@cid' => $comment->cid));

  $form_state['redirect'] = "node/$comment->nid";
}