Display Taxonomy Description in Views Drupal 6

These are 2 snippets that apparently do the same thing, I can verify the first chunk works just fine in Dupal 6.25.

  • Remember to enable an input format that allows PHP (php filter is part of the drupal core)
  • Paste one of these examples into the header of the view
    Be careful when using PHP code in views, we not responsible for crashy-crashy so make sure you backup :)

    Example 1

    $view = views_get_current_view();
    if (is_numeric($view->args[0])){
    $term = taxonomy_get_term($view->args[0]);
    return $term->description;
    }
    ?>

    Example 2

    $current = taxonomy_get_term(arg(2));
    echo $current->description;
    ?>