From c2fcb6d5198f0bbec54787744eac0ed24ef9db96 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 12 Nov 2005 04:31:56 +0000 Subject: #30993: Make taxonomy selector widget themable --- modules/taxonomy/taxonomy.module | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') 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 = '--') { -- cgit v1.2.3