custom/nodeterms/nodeterms.module, line 700
theme_nodeterms_terms_display_tree($branch)Theme node terms as tree (nested un-ordered lists).
<?php
function theme_nodeterms_terms_display_tree($branch) {
// Sort current branch by key
ksort(&$branch);
$output = '<ul>';
foreach ($branch as $key => $value) {
$term = $value['term'];
$output .= '<li>';
$output .= ($term->path) ? l($term->name, $term->path ) : '<span>'. $term->name .'</span>';
// Recurse below branches
if ($value['below']) {
$output .= theme_nodeterms_terms_display_tree($value['below']);
}
$output .= '</li>';
}
$output .= '</ul>';
return $output;
}
?>