summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-11-12 04:31:56 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-11-12 04:31:56 +0000
commitc2fcb6d5198f0bbec54787744eac0ed24ef9db96 (patch)
tree58494a4e31ea64931ad2cb725348424579c4bc51 /modules/taxonomy.module
parent36b62d969d0b9aa71091ba561760992ca1d5e1e6 (diff)
downloadbrdo-c2fcb6d5198f0bbec54787744eac0ed24ef9db96.tar.gz
brdo-c2fcb6d5198f0bbec54787744eac0ed24ef9db96.tar.bz2
#30993: Make taxonomy selector widget themable
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module6
1 files changed, 5 insertions, 1 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 = '--') {