You are here

function taxonomy_node_update_index in Drupal 5

Same name and namespace in other branches
  1. 4 modules/taxonomy.module \taxonomy_node_update_index()
  2. 6 modules/taxonomy/taxonomy.module \taxonomy_node_update_index()

Implementation of hook_nodeapi('update_index').

1 call to taxonomy_node_update_index()
taxonomy_nodeapi in modules/taxonomy/taxonomy.module
Implementation of hook_nodeapi().

File

modules/taxonomy/taxonomy.module, line 1355
Enables the organization of content into categories.

Code

function taxonomy_node_update_index(&$node) {
  $output = array();
  foreach ($node->taxonomy as $term) {
    $output[] = $term->name;
  }
  if (count($output)) {
    return '<strong>(' . implode(', ', $output) . ')</strong>';
  }
}