- Taxonomy fix by Matt.
parent
23142e0efb
commit
9f4a335887
|
@ -673,6 +673,9 @@ function taxonomy_get_term($tid) {
|
||||||
|
|
||||||
function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) {
|
function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) {
|
||||||
$tree = taxonomy_get_tree($vocabulary_id);
|
$tree = taxonomy_get_tree($vocabulary_id);
|
||||||
|
if ($blank) {
|
||||||
|
$options[] = array('tid' => 0, 'name' => $blank);
|
||||||
|
}
|
||||||
if ($tree) {
|
if ($tree) {
|
||||||
foreach ($tree as $term) {
|
foreach ($tree as $term) {
|
||||||
if (!in_array($term->tid, $exclude)) {
|
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()) {
|
function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) {
|
||||||
$tree = taxonomy_get_tree($vocabulary_id);
|
$tree = taxonomy_get_tree($vocabulary_id);
|
||||||
|
if ($blank) {
|
||||||
|
$options[] = array('tid' => 0, 'name' => $blank);
|
||||||
|
}
|
||||||
if ($tree) {
|
if ($tree) {
|
||||||
foreach ($tree as $term) {
|
foreach ($tree as $term) {
|
||||||
if (!in_array($term->tid, $exclude)) {
|
if (!in_array($term->tid, $exclude)) {
|
||||||
|
|
Loading…
Reference in New Issue