function hook_comment_insert

The comment is being inserted.


$comment: The comment object.

Related topics

3 functions implement hook_comment_insert()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entity_crud_hook_test_comment_insert in drupal/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_comment_insert().
search_comment_insert in drupal/modules/search/search.module
Implements hook_comment_insert().
trigger_comment_insert in drupal/modules/trigger/trigger.module
Implements hook_comment_insert().
1 invocation of hook_comment_insert()
comment_save in drupal/modules/comment/comment.module
Accepts a submission of new or changed comment content.


drupal/modules/comment/comment.api.php, line 32
Hooks provided by the Comment module.


function hook_comment_insert($comment) {

  // Reindex the node when comments are added.