diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-03-13 14:32:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-03-13 14:32:07 +0000 |
commit | c59e50aa6dc5fcbdcb0d7e50f2a7c53c2f39c852 (patch) | |
tree | 2a14f4e51bfd1b398017e2d635ee3ff822cc1441 /modules/comment/comment.api.php | |
parent | 957f8884525fef426a849e4cba84ae33b5c2d218 (diff) | |
download | brdo-c59e50aa6dc5fcbdcb0d7e50f2a7c53c2f39c852.tar.gz brdo-c59e50aa6dc5fcbdcb0d7e50f2a7c53c2f39c852.tar.bz2 |
- Patch #314138 by jeffschuler: documentation improvements.
Diffstat (limited to 'modules/comment/comment.api.php')
-rw-r--r-- | modules/comment/comment.api.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/comment/comment.api.php b/modules/comment/comment.api.php index 377be4786..df2edb30e 100644 --- a/modules/comment/comment.api.php +++ b/modules/comment/comment.api.php @@ -19,10 +19,9 @@ * @return * Nothing. */ -function hook_comment_insert(&$form_values) { - $nid = $form_values['nid']; - - cache_clear_all_like(drupal_url(array('id' => $nid))); +function hook_comment_insert($form_values) { + // Reindex the node when comments are added. + search_touch_node($form_values['nid']); } /** @@ -50,10 +49,9 @@ function hook_comment_validate(&$form_values) { * @return * Nothing. */ -function hook_comment_update(&$form_values) { - $nid = $form_values['nid']; - - cache_clear_all_like(drupal_url(array('id' => $nid))); +function hook_comment_update($form_values) { + // Reindex the node when comments are updated. + search_touch_node($form_values['nid']); } /** |