API page: http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/func...

Describe the problem you have found:

The return value can also be an empty array, when no parents are found. This is not described in the Return value. Users with smart IDEs will benefit from these kind of correct informations.

Files: 
CommentFileSizeAuthor
#2 taxonomy-parents-1196112-2.patch603 bytesrocket_nova
PASSED: [[SimpleTest]]: [MySQL] 33,994 pass(es).
[ View ]

Comments

Title:Documentation problem with taxonomy_get_parentstaxonomy_get_parents return value doc isn't complete
Version:7.2» 8.x-dev
Issue tags:+needs backport to D7

Thanks for reporting! We fix in 8.x then port back to 7.x

Assigned:Unassigned» rocket_nova
Status:Active» Needs review
StatusFileSize
new603 bytes
PASSED: [[SimpleTest]]: [MySQL] 33,994 pass(es).
[ View ]

Patch attached that adds documentions that specifies that taxonomy_get_parents() returns an empty array if no parents are found.

Status:Needs review» Reviewed & tested by the community

Looks good, thanks!

Status:Reviewed & tested by the community» Fixed

Committed to 7.x and 8.x. Thanks.

Automatically closed -- issue fixed for 2 weeks with no activity.