order track list item done

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2012-05-18 18:15:49 +02:00
parent 292f704f37
commit b4b346b8a5
5 changed files with 235 additions and 54 deletions

View File

@@ -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;
}