diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 4baf3b7f827..f8c4226e51f 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 4baf3b7f827..f8c4226e51f 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)) {