@@ -33,7 +33,7 @@ function term_reference_tree_element_info() {
|
||||
'#input' => false,
|
||||
'#theme' => array('checkbox_tree_track_list'),
|
||||
'#pre_render' => array('form_pre_render_conditional_form_element'),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
return $types;
|
||||
@@ -183,6 +183,7 @@ function _term_reference_tree_flatten($element, &$form_state) {
|
||||
$children = element_children($element);
|
||||
foreach($children as $c) {
|
||||
$child = $element[$c];
|
||||
// dsm($child, '$child');
|
||||
if (array_key_exists('#type', $child) && ($child['#type'] == 'radio' || $child['#type'] == 'checkbox')) {
|
||||
$output[] = $child;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user