taxonomy_node_update_index

Definition

taxonomy_node_update_index(&$node)
modules/taxonomy/taxonomy.module, line 1186

Description

Implementation of hook_nodeapi('update_index').

Code

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

Drupal is a registered trademark of Dries Buytaert.