Changeset 12559

Show
Ignore:
Timestamp:
02/20/08 11:09:35 (11 months ago)
Author:
pottedmeat
Message:

Refs #5602. Clear index on deletion

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/branches/dev/jsdoc/jsdoc.module

    r12558 r12559  
    11721172 */ 
    11731173function jsdoc_variable_delete(&$node) { 
     1174  if (function_exists('search_wipe')) { 
     1175    search_wipe($node->nid, 'jsdoc_' . jsdoc_get_version($node)->title); 
     1176  } 
    11741177  db_query("DELETE FROM {jsdoc_variables} WHERE nid = %d", $node->nid); 
    11751178  db_query("DELETE FROM {jsdoc_variable_hierarchy} WHERE nid = %d OR parent_nid = %d", $node->nid, $node->nid);