function comment_save_action

Saves a comment.

Parameters

Drupal\comment\Comment $comment:

Related topics

File

drupal/core/modules/comment/comment.module, line 1992
Enables users to comment on published content.

Code

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