summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-16 12:55:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-16 12:55:50 +0000
commit525539777569cd7371db908908553dcdadd8c62d (patch)
tree807a1a791cc3595080272afae455385082f216fe /modules
parentd8d6810f834d89d579a3928cc9f0983736c61d9f (diff)
downloadbrdo-525539777569cd7371db908908553dcdadd8c62d.tar.gz
brdo-525539777569cd7371db908908553dcdadd8c62d.tar.bz2
#201641 by Ralf Stamm, Pancho: sort themes by their .info name, not their file name (just like modules)
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.admin.inc6
1 files changed, 4 insertions, 2 deletions
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']);