Revision: 46945
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 27, 2011 23:10 by janlodey
Initial Code
if (arg(0) != 'node') {
return;
}
$node = node_load(arg(1));
$tids = array();
$vid = 2; // this is the vocabulary id to search through...
$terms = taxonomy_node_get_terms_by_vocabulary($node, $vid);
foreach($terms as $term){
$tids[] = $term->tid;
}
return implode('+',$tids);
Initial URL
Initial Description
Use this on a Term ID argument - enter the below as provide default agrument - php Code remember to change the vid to your vocabulary
Initial Title
Related by taxonomy php views argument
Initial Tags
drupal
Initial Language
PHP