Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
/**
* Return an array of all vocabulary objects.
*
* @param $type
* If set, return only those vocabularies associated with this node type.
*/
function taxonomy_get_vocabularies() {
return taxonomy_vocabulary_load_multiple(FALSE, array());
}
- there is no $type input parameter
- the @return doc is missing.
Comment | File | Size | Author |
---|---|---|---|
#4 | taxonomy-738902.patch | 829 bytes | johnstorey |
#2 | taxonomy-738902.patch | 828 bytes | johnstorey |
Comments
Comment #1
johnstorey CreditAttribution: johnstorey commentedComment #2
johnstorey CreditAttribution: johnstorey commentedRemove the @param document directive and added a @return.
Comment #3
aspilicious CreditAttribution: aspilicious commented+ * @return
+ * An array of all vocabulary objects, indexed by vid
Sentence need to end with a .
Comment #4
johnstorey CreditAttribution: johnstorey commentedRe-submitted with missing period added.
Comment #5
bleen CreditAttribution: bleen commentedwas just about to file an issue about this ... but this patch looks good.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.