diff -u b/core/includes/module.inc b/core/includes/module.inc --- b/core/includes/module.inc +++ b/core/includes/module.inc @@ -83,14 +83,7 @@ $list = $module_list; } elseif (!isset($module_list)) { - if ($type == 'bootstrap') { - $list = system_list('bootstrap'); - } - else { - // Not using drupal_map_assoc() here as that requires common.inc. - $list = array_keys(system_list($type)); - $list = (!empty($list) ? array_combine($list, $list) : array()); - } + $list = system_list($type); } return $list; } diff -u b/core/modules/system/system.module b/core/modules/system/system.module --- b/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -1,13 +1,11 @@ $info) { - $names[$module] = $system_info[$module]['name']; - } + $names = system_get_module_info('name'); + $names = array_intersect_key($names, $search_info); asort($names, SORT_STRING); return $names; }