summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index dedab9429..149f8bf84 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1182,7 +1182,21 @@ function taxonomy_nodeapi($node, $op, $arg = 0) {
break;
case 'rss item':
return taxonomy_rss_item($node);
- break;
+ case 'update index':
+ return taxonomy_node_update_index($node);
+ }
+}
+
+/**
+ * Implementation of hook_nodeapi('update_index').
+ */
+function taxonomy_node_update_index(&$node) {
+ $output = array();
+ foreach ($node->taxonomy as $term) {
+ $output[] = $term->name;
+ }
+ if (count($output)) {
+ return '<strong>('. implode(', ', $output) .')</strong>';
}
}