function forum_comment_publish

Implements hook_comment_publish().

This actually handles the insertion and update of published nodes since comment_save() calls hook_comment_publish() for all published comments.

File

modules/forum/forum.module, line 492

Code

function forum_comment_publish($comment) {
    _forum_update_forum_index($comment->nid);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.