I have a vocabulary which contains a large number of terms, most of which have been given relationships to other terms.
I want to create a block display of a view which takes the term from the current node and displays all the other content which has a related term from the same vocabulary.
So far, I have been able to return all nodes with the same term using this as a views argument:
node = node_load(arg(1));
if($node) {
foreach($node->taxonomy as $term) { $terms[] = $term->tid; }
return implode('+',$terms);
} else { return; }
However, I haven't been able to combine this with taxonomy_get_related to return nodes related by term. Any suggestions?