The taxonomy_get_children function should imo support getting the top level terms by accepting parameter $tid = 0.

Because a tid always belongs to a specific vid, the 2nd parameter is superfluous, UNLESS this function was meant to be handling the $tid = 0 case... Changes needed are very simple, except that the caching makes it a bit more difficult.

CommentFileSizeAuthor
#2 1136408.patch939 bytesfietserwin

Comments

fietserwin’s picture

Status: Active » Needs review
fietserwin’s picture

StatusFileSize
new939 bytes

oops, and now with a patch file attached.

jcisio’s picture

Status: Needs review » Closed (duplicate)