You are here

function comment_save_action in Drupal 7

Saves a comment.

Related topics

File

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

Code

function comment_save_action($comment) {
  comment_save($comment);
  cache_clear_all();
  watchdog('action', 'Saved comment %title', array(
    '%title' => $comment->subject,
  ));
}