From cba22e6b134a56213a76fa0cac416b22883a65b8 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 28 Jul 2011 15:22:36 -0400 Subject: Issue #1196108 by James_Stallings, foobar3000: Fixed taxonomy_get_children() return value doc is not complete. --- modules/taxonomy/taxonomy.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index dc2847d37..2aa55a84c 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -879,7 +879,8 @@ function taxonomy_get_parents_all($tid) { * An optional vocabulary ID to restrict the child search. * * @return - * An array of term objects which are the children of the term $tid. + * An array of term objects that are the children of the term $tid, or an + * empty array when no children exist. */ function taxonomy_get_children($tid, $vid = 0) { $children = &drupal_static(__FUNCTION__, array()); -- cgit v1.2.3