Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had to tweak the code a little in the module file
$node_obj = node_load($nid);
if ($vocid == 'all') {
$terms = array_keys(similarterms_taxonomy_node_get_terms($node_obj));
}
else {
if($vocid == "1")
{
$terms = null;
}
else
{
$terms = array_keys(similarterms_taxonomy_node_get_terms_by_vocabulary($node_obj, $vocid));
}
}
Comments
Comment #0.0
zeezack CreditAttribution: zeezack commentedtweak
Comment #1
takim CreditAttribution: takim commented