‘;

$terms = taxonomy_get_tree(4);

foreach($terms as $term) {
if($term->depth == 0) {
$output .= ‘

  • ‘;
    $path = drupal_get_path_alias(‘taxonomy/term/’ . $term->tid);
    $output .= ‘‘ . $term->name . ‘‘;

    if($children = taxonomy_get_children($term->tid)) {
    $output .= ‘

      ‘;
      foreach($children as $child) {
      $path = drupal_get_path_alias(‘taxonomy/term/’ . $child->tid);
      $output .= ‘

    • ‘ . ‘‘ . $child->name . ‘‘ . ‘
    • ‘;
      }
      $output .= ‘

    ‘;
    }

    $output .= ‘

  • ‘;
    }
    }

    $output .= ‘

    ‘;
    print $output;

    ?>