You are here

function content_taxonomy_content_diff_values in Content Taxonomy 6

Same name and namespace in other branches
  1. 6.2 content_taxonomy.module \content_taxonomy_content_diff_values()

Implementation of hook_content_diff_values

File

./content_taxonomy.module, line 537
Defines a field type for referencing a taxonomy term.

Code

function content_taxonomy_content_diff_values($node, $field, $items) {
  $return = array();
  foreach ($items as $item) {
    if (isset($item['value']) && is_numeric($item['value'])) {
      $term = taxonomy_get_term($item['value']);
      $return[] = $term->name;
    }
  }
  return $return;
}