arguments

Fix for Argument handling code for a view taking in TID as argument, trying to get the parent TID to be returned (if it has)

  1. // note that this only gets the immediate parent
  2. if ($args[0]){
  3.         $parents = taxonomy_get_parents($args[0]);
  4.         if ($parents) {
  5.                 foreach ($parents as $parent) {
  6.                 $parentID = $parent->tid;
Syndicate content