tid] = $term->c; } } // foreach (_taxonomy_term_children($tid) as $c) { // $children_count += taxonomy_term_count_nodes($c, $type); // } return $count[$type][$status][$tid] + $children_count; }