summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/taxonomy.module3
-rw-r--r--modules/taxonomy/taxonomy.module3
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)) {