function taxonomy_node_update_index in Drupal 4
Same name and namespace in other branches
- 5 modules/taxonomy/taxonomy.module \taxonomy_node_update_index()
- 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.module - Implementation of hook_nodeapi().
File
- modules/
taxonomy.module, line 1184 - 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>';
}
}