Commit c59e50aa authored by Dries's avatar Dries

- Patch #314138 by jeffschuler: documentation improvements.

parent 957f8884
......@@ -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']);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment