From 525539777569cd7371db908908553dcdadd8c62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 16 Jan 2008 12:55:50 +0000 Subject: #201641 by Ralf Stamm, Pancho: sort themes by their .info name, not their file name (just like modules) --- modules/system/system.admin.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index ef99085d8..54057f155 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -187,7 +187,9 @@ function system_themes_form() { drupal_clear_css_cache(); $themes = system_theme_data(); - ksort($themes); + + uasort($themes, 'system_sort_modules_by_info_name'); + $status = array(); $incompatible_core = array(); $incompatible_php = array(); @@ -769,7 +771,7 @@ function system_modules($form_state = array()) { } /** - * Array sorting callback; sorts modules by their name. + * Array sorting callback; sorts modules or themes by their name. */ function system_sort_modules_by_info_name($a, $b) { return strcasecmp($a->info['name'], $b->info['name']); -- cgit v1.2.3