summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-23 20:52:46 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-23 20:52:46 +0000
commit9f4a33588791c51a447026154d0319c4b2d9dee4 (patch)
treea50d6353f47b91dec57b4581ea3cd72b241b313d /modules/taxonomy.module
parent23142e0efbdebcde29ef0da7f99ac1b39d985374 (diff)
downloadbrdo-9f4a33588791c51a447026154d0319c4b2d9dee4.tar.gz
brdo-9f4a33588791c51a447026154d0319c4b2d9dee4.tar.bz2
- Taxonomy fix by Matt.
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module3
1 files changed, 3 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)) {