diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-28 15:34:06 -0400 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-28 15:34:06 -0400 |
commit | ffb3b76c81419a85ceade8f0dbabafae56a4aa8a (patch) | |
tree | 5ceecc7faa7b1a88f4f4b8a03a041ff07ae644ff /modules/taxonomy | |
parent | 13f4debe2bd80551bbc2efe8cf40ebcd2600af3e (diff) | |
download | brdo-ffb3b76c81419a85ceade8f0dbabafae56a4aa8a.tar.gz brdo-ffb3b76c81419a85ceade8f0dbabafae56a4aa8a.tar.bz2 |
Issue #1196102 by James_Stallings, jhodgdon: Fixed taxonomy_check_vocabulary_hierarchy() doc lacks return value.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index db41a71a8..946c5e4a7 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -510,19 +510,22 @@ function taxonomy_taxonomy_vocabulary_update($vocabulary) { } /** - * Dynamically check and update the hierarchy flag of a vocabulary. + * Checks and updates the hierarchy flag of a vocabulary. * * Checks the current parents of all terms in a vocabulary and updates the - * vocabularies hierarchy setting to the lowest possible level. A hierarchy with - * no parents in any of its terms will be given a hierarchy of 0. If terms - * contain at most a single parent, the vocabulary will be given a hierarchy of - * 1. If any term contain multiple parents, the vocabulary will be given a - * hierarchy of 2. + * vocabulary's hierarchy setting to the lowest possible level. If no term + * has parent terms then the vocabulary will be given a hierarchy of 0. + * If any term has a single parent then the vocabulary will be given a + * hierarchy of 1. If any term has multiple parents then the vocabulary + * will be given a hierarchy of 2. * * @param $vocabulary * A vocabulary object. * @param $changed_term * An array of the term structure that was updated. + * + * @return + * An integer that represents the level of the vocabulary's hierarchy. */ function taxonomy_check_vocabulary_hierarchy($vocabulary, $changed_term) { $tree = taxonomy_get_tree($vocabulary->vid); |