summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-09 08:28:28 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-09 08:28:28 +0000
commit9004bed664506f80e5b5b29382aa6709a8fc5def (patch)
tree995cc066ec92fb1af8f5db63fd8c66de7fade53b
parentc6328111a3127706ba514059eb76fa249e660f21 (diff)
downloadbrdo-9004bed664506f80e5b5b29382aa6709a8fc5def.tar.gz
brdo-9004bed664506f80e5b5b29382aa6709a8fc5def.tar.bz2
- Patch #47899 by Zen: fixed weight issues with freetagging vocabulary.
-rw-r--r--modules/taxonomy.module10
-rw-r--r--modules/taxonomy/taxonomy.module10
2 files changed, 18 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 483724bbb..8f3fe3f80 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -528,7 +528,15 @@ function taxonomy_form_alter($form_id, &$form) {
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);
+ $form['taxonomy']['tags'][$vocabulary->vid] = array('#type' => 'textfield',
+ '#title' => $vocabulary->name,
+ '#description' => $help,
+ '#required' => $vocabulary->required,
+ '#default_value' => $typed_string,
+ '#autocomplete_path' => 'taxonomy/autocomplete/'. $vocabulary->vid,
+ '#weight' => $vocabulary->weight,
+ '#maxlength' => 100,
+ );
}
else {
$form['taxonomy'][$vocabulary->vid] = taxonomy_form($vocabulary->vid, array_keys($terms), $help);
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 483724bbb..8f3fe3f80 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -528,7 +528,15 @@ function taxonomy_form_alter($form_id, &$form) {
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);
+ $form['taxonomy']['tags'][$vocabulary->vid] = array('#type' => 'textfield',
+ '#title' => $vocabulary->name,
+ '#description' => $help,
+ '#required' => $vocabulary->required,
+ '#default_value' => $typed_string,
+ '#autocomplete_path' => 'taxonomy/autocomplete/'. $vocabulary->vid,
+ '#weight' => $vocabulary->weight,
+ '#maxlength' => 100,
+ );
}
else {
$form['taxonomy'][$vocabulary->vid] = taxonomy_form($vocabulary->vid, array_keys($terms), $help);