function taxonomy_node_update_index
6.x taxonomy.module | taxonomy_node_update_index(&$node) |
Implementation of hook_nodeapi('update_index').
1 call to taxonomy_node_update_index()
- taxonomy_nodeapi in drupal-6.x/
modules/ taxonomy/ taxonomy.module - Implementation of hook_nodeapi().
File
- drupal-6.x/
modules/ taxonomy/ taxonomy.module, line 1291 - 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>';
}
}