function comment_save_action

comment_save_action($comment)

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));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_save_action/7.x