/**
 * 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.

CommentFileSizeAuthor
#4 taxonomy-738902.patch829 bytesjohnstorey
#2 taxonomy-738902.patch828 bytesjohnstorey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnstorey’s picture

Assigned: Unassigned » johnstorey
johnstorey’s picture

Assigned: johnstorey » Unassigned
Status: Active » Needs review
FileSize
828 bytes

Remove the @param document directive and added a @return.

aspilicious’s picture

+ * @return
+ * An array of all vocabulary objects, indexed by vid

Sentence need to end with a .

johnstorey’s picture

FileSize
829 bytes

Re-submitted with missing period added.

bleen’s picture

Status: Needs review » Reviewed & tested by the community

was just about to file an issue about this ... but this patch looks good.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Documentation

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