Skip to content
Snippets Groups Projects
Commit b405e613 authored by Angie Byron's avatar Angie Byron
Browse files

#504256 by Berdir and sun: Fix notice on modules page when first scanning a module.

parent 65a1528f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -38,8 +38,7 @@ function _registry_rebuild() {
_registry_get_resource_name();
// Get current list of modules and their files.
$modules = drupal_system_listing('/\.module$/', 'modules', 'name', 0);
system_get_files_database($modules, 'module');
$modules = system_get_module_data();
// Get the list of files we are going to parse.
$files = array();
foreach ($modules as &$module) {
......@@ -48,11 +47,6 @@ function _registry_rebuild() {
// Store the module directory for use in hook_registry_files_alter().
$module->dir = $dir;
// Parse the .info file for all modules, reguardless of their status so the
// list of files can then be used in hook_registry_files_alter()
// implementations.
$module->info = drupal_parse_info_file($dir . '/' . $module->name . '.info');
if ($module->status) {
// Add files for enabled modules to the registry.
foreach ($module->info['files'] as $file) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment