diff --git a/file_entity.admin.inc b/file_entity.admin.inc index f4d2d02..33788e6 100644 --- a/file_entity.admin.inc +++ b/file_entity.admin.inc @@ -587,6 +587,12 @@ function file_entity_list_types_page() { $rows[] = array('data' => $row, 'class' => array((!empty($type->disabled) ? 'ctools-export-ui-disabled' : ''))); } + // Move disabled items to the bottom. + $disabled = array_filter($rows, function($row) {return in_array('ctools-export-ui-disabled', $row['class']);}); + $rows = array_diff_key($rows, $disabled); + $rows += $disabled; + $rows = array_values($rows); + $build['file_type_table'] = array( '#theme' => 'table', '#header' => $header,