#179164 by Heine: short modules by name on the module admin page
parent
4a74b17668
commit
47c0d5af6d
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue