diff options
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 3 |
1 files changed, 3 insertions, 0 deletions
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 .= '</optgroup>'; } + 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'])))) { |