summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index de8b86404..cd58909e6 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -522,7 +522,13 @@ function taxonomy_form_alter($form_id, &$form) {
}
$typed_string = implode(', ', $typed_terms) . (array_key_exists('tags', $terms) ? $terms['tags'][$vocabulary->vid] : NULL);
- $form['taxonomy']['tags'][$vocabulary->vid] = array('#type' => 'textfield', '#default_value' => $typed_string, '#maxlength' => 100, '#autocomplete_path' => 'taxonomy/autocomplete/'. $vocabulary->vid, '#required' => $vocabulary->required, '#title' => $vocabulary->name, '#description' => t('A comma-separated list of terms describing this content (Example: funny, bungie jumping, "Company, Inc.").'));
+ if ($vocabulary->help) {
+ $help = $vocabulary->help;
+ }
+ else {
+ $help = t('A comma-separated list of terms describing this content. Example: funny, bungie jumping, "Company, Inc.".');
+ }
+ $form['taxonomy']['tags'][$vocabulary->vid] = array('#type' => 'textfield', '#default_value' => $typed_string, '#maxlength' => 100, '#autocomplete_path' => 'taxonomy/autocomplete/'. $vocabulary->vid, '#required' => $vocabulary->required, '#title' => $vocabulary->name, '#description' => $help);
}
else {
$ntterms = isset($node->taxonomy) ? $terms : array_keys($terms);