hook_comment_update

Versions
7
hook_comment_update($comment)

The comment is being updated.

Parameters

$comment The comment object.

Related topics

Code

modules/comment/comment.api.php, line 43

<?php
function hook_comment_update($comment) {
  // Reindex the node when comments are updated.
  search_touch_node($comment->nid);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.