aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2009-10-16 11:36:04 -0300
committerSilvio <s1lv10@uol.com.br>2009-10-16 11:36:04 -0300
commit9090435465e4aca90b3631fe1db04e6854fc3320 (patch)
treebbf6602445396577b816f20b77560bd7a9e1d00c
parent06db5918e5dc93aa772996ea9a1f30819d45012b (diff)
downloadtaxonomy_node_tree-9090435465e4aca90b3631fe1db04e6854fc3320.tar.gz
taxonomy_node_tree-9090435465e4aca90b3631fe1db04e6854fc3320.tar.bz2
Coding standards
-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]);
}
}