diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-23 20:52:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-23 20:52:46 +0000 |
commit | 9f4a33588791c51a447026154d0319c4b2d9dee4 (patch) | |
tree | a50d6353f47b91dec57b4581ea3cd72b241b313d /modules | |
parent | 23142e0efbdebcde29ef0da7f99ac1b39d985374 (diff) | |
download | brdo-9f4a33588791c51a447026154d0319c4b2d9dee4.tar.gz brdo-9f4a33588791c51a447026154d0319c4b2d9dee4.tar.bz2 |
- Taxonomy fix by Matt.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy.module | 3 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 4baf3b7f8..f8c4226e5 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -673,6 +673,9 @@ function taxonomy_get_term($tid) { function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) { $tree = taxonomy_get_tree($vocabulary_id); + if ($blank) { + $options[] = array('tid' => 0, 'name' => $blank); + } if ($tree) { foreach ($tree as $term) { if (!in_array($term->tid, $exclude)) { diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 4baf3b7f8..f8c4226e5 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -673,6 +673,9 @@ function taxonomy_get_term($tid) { function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) { $tree = taxonomy_get_tree($vocabulary_id); + if ($blank) { + $options[] = array('tid' => 0, 'name' => $blank); + } if ($tree) { foreach ($tree as $term) { if (!in_array($term->tid, $exclude)) { |