return'<p>'.t('You can reorganize the terms in %capital_name using their drag-and-drop handles, and group terms under a parent term by sliding them under and to the right of the parent.',array('%capital_name'=>drupal_ucfirst($vocabulary->name),'%name'=>$vocabulary->name)).'</p>';
case1:
caseTAXONOMY_HIERARCHY_SINGLE:
return'<p>'.t('%capital_name contains terms grouped under parent terms. You can reorganize the terms in %capital_name using their drag-and-drop handles.',array('%capital_name'=>drupal_ucfirst($vocabulary->name),'%name'=>$vocabulary->name)).'</p>';
case2:
caseTAXONOMY_HIERARCHY_MULTIPLE:
return'<p>'.t('%capital_name contains terms with multiple parents. Drag and drop of terms with multiple parents is not supported, but you can re-enable drag-and-drop support by editing each term to include only a single parent.',array('%capital_name'=>drupal_ucfirst($vocabulary->name))).'</p>';
}
}
...
...
@@ -519,10 +534,11 @@ function taxonomy_taxonomy_vocabulary_update($vocabulary) {
*
* Checks the current parents of all terms in a vocabulary and updates the
* 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.
* has parent terms then the vocabulary will be given a hierarchy of
* TAXONOMY_HIERARCHY_DISABLED. If any term has a single parent then the
* vocabulary will be given a hierarchy of TAXONOMY_HIERARCHY_SINGLE. If any
* term has multiple parents then the vocabulary will be given a hierarchy of
* TAXONOMY_HIERARCHY_MULTIPLE.
*
* @param $vocabulary
* A vocabulary object.
...
...
@@ -534,7 +550,7 @@ function taxonomy_taxonomy_vocabulary_update($vocabulary) {