diff options
-rw-r--r-- | modules/taxonomy.module | 6 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 931b4ceca..bac42703d 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -919,7 +919,11 @@ function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $descripti $value = $tree[0]->tid; } } - return array('#type' => 'select', '#title' => $title, '#default_value' => $value, '#options' => $options, '#description' => $description, '#multiple' => $multiple, '#size' => $multiple ? 'size="'. min(12, count($options)) .'"' : 0, '#weight' => -15); + return array('#type' => 'select', '#title' => $title, '#default_value' => $value, '#options' => $options, '#description' => $description, '#multiple' => $multiple, '#size' => $multiple ? 'size="'. min(12, count($options)) .'"' : 0, '#weight' => -15, '#theme' => 'taxonomy_term_select'); +} + +function theme_taxonomy_term_select($element) { + return theme('select', $element); } function _taxonomy_depth($depth, $graphic = '--') { diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 931b4ceca..bac42703d 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -919,7 +919,11 @@ function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $descripti $value = $tree[0]->tid; } } - return array('#type' => 'select', '#title' => $title, '#default_value' => $value, '#options' => $options, '#description' => $description, '#multiple' => $multiple, '#size' => $multiple ? 'size="'. min(12, count($options)) .'"' : 0, '#weight' => -15); + return array('#type' => 'select', '#title' => $title, '#default_value' => $value, '#options' => $options, '#description' => $description, '#multiple' => $multiple, '#size' => $multiple ? 'size="'. min(12, count($options)) .'"' : 0, '#weight' => -15, '#theme' => 'taxonomy_term_select'); +} + +function theme_taxonomy_term_select($element) { + return theme('select', $element); } function _taxonomy_depth($depth, $graphic = '--') { |