From 2ac86c8862ddbe3cd4435708d61842caa2ea7960 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 20 Oct 2006 20:55:03 +0000 Subject: #24023 by chx. Allow multiple select options with the same value and implement it for taxonomy selection. --- includes/form.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index d0a72c9b9..76ab0000f 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -890,6 +890,9 @@ function form_select_options($element, $choices = NULL) { $options .= form_select_options($element, $choice); $options .= ''; } + elseif (is_object($choice)) { + $options .= form_select_options($element, $choice->option); + } else { $key = (string)$key; if ($value_valid && ($element['#value'] == $key || ($value_is_array && in_array($key, $element['#value'])))) { -- cgit v1.2.3