aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--taxonomy_node_tree.module10
1 files changed, 9 insertions, 1 deletions
diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module
index fcdeecb..fba8a7c 100644
--- a/taxonomy_node_tree.module
+++ b/taxonomy_node_tree.module
@@ -2,6 +2,14 @@
// $Id$
/**
+ * @file
+ * Taxonomy Node Tree.
+ *
+ * This module implements functions to build hierarchical
+ * term trees including children nodes.
+ */
+
+/**
* Return the parent terms of a given vocabulary.
*
* This function takes a vocabulary id and returns a
@@ -67,7 +75,7 @@ function taxonomy_node_tree_sort(&$tree, $term) {
// is child
if (isset($term->children)) {
// is also parent, so go down one level
- foreach($term->children as $child) {
+ foreach ($term->children as $child) {
taxonomy_node_tree_sort($tree, $tree[$child]);
}
}