Skip to content
Snippets Groups Projects
Commit 9f4a3358 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Taxonomy fix by Matt.

parent 23142e0e
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment