From 3bbf1d39e2036e25e0629903f3b39886161e9ecc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 16 Apr 2005 11:49:27 +0000 Subject: - Patch #20561 by Morbus: free tagging doesn't support taxonomy_node_form $name. --- modules/taxonomy.module | 2 +- modules/taxonomy/taxonomy.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 355877d6f..e4c9cac09 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -521,7 +521,7 @@ function taxonomy_node_form($type, $node = '', $help = NULL, $name = 'taxonomy') } } $typed_string = implode(', ', $typed_terms) . (array_key_exists('tags', $terms) ? $terms['tags'][$vocabulary->vid] : NULL); - $result[] = form_textfield($vocabulary->name, 'taxonomy][tags]['. $vocabulary->vid, $typed_string, 50, 100, t('A comma-separated list of terms describing this content (Example: funny, bungie jumping, "Company, Inc.").'), NULL, ($vocabulary->required ? TRUE : FALSE)); + $result[] = form_textfield($vocabulary->name, "$name][tags][". $vocabulary->vid, $typed_string, 50, 100, t('A comma-separated list of terms describing this content (Example: funny, bungie jumping, "Company, Inc.").'), NULL, ($vocabulary->required ? TRUE : FALSE)); } else { $ntterms = array_key_exists('taxonomy', $node) ? $terms : array_keys($terms); diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 355877d6f..e4c9cac09 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -521,7 +521,7 @@ function taxonomy_node_form($type, $node = '', $help = NULL, $name = 'taxonomy') } } $typed_string = implode(', ', $typed_terms) . (array_key_exists('tags', $terms) ? $terms['tags'][$vocabulary->vid] : NULL); - $result[] = form_textfield($vocabulary->name, 'taxonomy][tags]['. $vocabulary->vid, $typed_string, 50, 100, t('A comma-separated list of terms describing this content (Example: funny, bungie jumping, "Company, Inc.").'), NULL, ($vocabulary->required ? TRUE : FALSE)); + $result[] = form_textfield($vocabulary->name, "$name][tags][". $vocabulary->vid, $typed_string, 50, 100, t('A comma-separated list of terms describing this content (Example: funny, bungie jumping, "Company, Inc.").'), NULL, ($vocabulary->required ? TRUE : FALSE)); } else { $ntterms = array_key_exists('taxonomy', $node) ? $terms : array_keys($terms); -- cgit v1.2.3