- Taxonomy fix by Matt.

4.5.x
Dries Buytaert 2004-06-23 20:52:46 +00:00
parent 23142e0efb
commit 9f4a335887
2 changed files with 6 additions and 0 deletions

View File

@ -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)) {

View File

@ -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)) {