#179164 by Heine: short modules by name on the module admin page

6.x
Gábor Hojtsy 2007-11-09 17:44:01 +00:00
parent 4a74b17668
commit 47c0d5af6d
1 changed files with 7 additions and 0 deletions

View File

@ -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.
*/