Commit 47c0d5af authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

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

parent 4a74b176
......@@ -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.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment