Closed (fixed)
Project:
Term Fields
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2009 at 16:29 UTC
Updated:
28 Mar 2009 at 19:48 UTC
I think this can be useful in some cases (like me - with ubercart). I just add this function (it similar taxonomy_get_children, but loads also all additional fields in 'fields' property) :
function term_fields_get_children($tid, $vid = 0, $key = 'tid') {
$children = taxonomy_get_children($tid, $vid, $key);
$result = array();
foreach ($children as $child) {
$result[] = term_fields_get_term($child->$key);
}
return $result;
}
Comments
Comment #1
archard commentedSounds reasonable. I can include this in the next version.