taxonomy_node_update_index

Versions
4.7 – 6
taxonomy_node_update_index(&$node)

Implementation of hook_nodeapi('update_index').

Code

modules/taxonomy/taxonomy.module, line 1211

<?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>';
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.