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

archard’s picture

Status: Active » Closed (fixed)

Sounds reasonable. I can include this in the next version.