function search_api_attachments_comment_comment_insert in Search API attachments 7
Implements hook_comment_insert().
File
- contrib/
search_api_attachments_comment/ search_api_attachments_comment.module, line 62 - Drupal hooks.
Code
function search_api_attachments_comment_comment_insert($comment) {
// Mark the node of the comment to be reindexed.
search_api_track_item_change('node', array(
$comment->nid,
));
}