Index: modules/taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v retrieving revision 1.273 diff -u -F^f -r1.273 taxonomy.module --- modules/taxonomy.module 25 Apr 2006 11:51:51 -0000 1.273 +++ modules/taxonomy.module 27 Apr 2006 19:21:04 -0000 @@ -1182,7 +1182,21 @@ function taxonomy_nodeapi($node, $op, $a break; case 'rss item': return taxonomy_rss_item($node); - break; + case 'update_index': + return taxonomy_update_index($node); + } +} + +/** + * Implementation of hook_nodeapi('update_index'). + */ +function taxonomy_update_index(&$node) { + $output = array(); + foreach ($node->taxonomy as $term) { + $output[] = $term->name; + } + if (count($output)) { + return ''. implode(' ', $output) .''; } }