summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-09 17:44:01 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-09 17:44:01 +0000
commit47c0d5af6d0dc7cf81cf7ed9f0666d5c0a7c782a (patch)
tree34ba48b7ffdf15e12a017ffdd36b8a9b0ed5ef89 /modules
parent4a74b176683762cc5a3f39b7d6cb75df9965985b (diff)
downloadbrdo-47c0d5af6d0dc7cf81cf7ed9f0666d5c0a7c782a.tar.gz
brdo-47c0d5af6d0dc7cf81cf7ed9f0666d5c0a7c782a.tar.bz2
#179164 by Heine: short modules by name on the module admin page
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.admin.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 1afc7e0f6..333518a74 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -568,6 +568,9 @@ function _system_is_incompatible(&$incompatible, $files, $file) {
function system_modules($form_state = array()) {
// Get current list of modules.
$files = module_rebuild_cache();
+
+ uasort($files, 'system_sort_modules_by_info_name');
+
if (!empty($form_state['storage'])) {
return system_modules_confirm_form($files, $form_state['storage']);
}
@@ -713,6 +716,10 @@ function system_modules($form_state = array()) {
return $form;
}
+function system_sort_modules_by_info_name($a, $b) {
+ return strcasecmp($a->info['name'], $b->info['name']);
+}
+
/**
* Form process callback function to disable check boxes.
*/