name; $vid = $term->vid; } } if ($vid) { $vocabulary = taxonomy_vocabulary_load($vid); } $tokens['terms-raw'] = implode(', ', $terms); $tokens['terms'] = check_plain($tokens['terms-raw']); $tokens['tids'] = implode(', ', $tids); $tokens['term-raw'] = $terms[0]; $tokens['term'] = check_plain($tokens['term-raw']); $tokens['tid'] = $tids[0]; $tokens['vocab'] = isset($vocabulary) ? $vocabulary->name : ''; $tokens['vid'] = $vid; return $tokens; } }