From 9f4a33588791c51a447026154d0319c4b2d9dee4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 23 Jun 2004 20:52:46 +0000 Subject: - Taxonomy fix by Matt. --- modules/taxonomy.module | 3 +++ modules/taxonomy/taxonomy.module | 3 +++ 2 files changed, 6 insertions(+) (limited to 'modules') 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)) { -- cgit v1.2.3