Closed (fixed)
Project:
Instant Search
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2009 at 16:18 UTC
Updated:
17 May 2009 at 13:50 UTC
Is the implementation of hook_comment() necessary for this module to reindex a node after its comments have changed?
Something like this:
/*
* Implementation of hook_comment().
*/
function instant_search_comment(&$a1, $op) {
switch ($op) {
case 'insert':
case 'update':
case 'delete':
global $update_node_index;
$update_node_index = is_array($a1) ? $a1['nid'] : $a1->nid;
break;
}
}
Comments
Comment #1
davyvdb commentedUpdates should work by default. If not, left me know.