From b405e61329ba3d48602c9d24d641a8f4e099ef09 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 4 Aug 2009 05:09:40 +0000 Subject: #504256 by Berdir and sun: Fix notice on modules page when first scanning a module. --- includes/registry.inc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'includes/registry.inc') diff --git a/includes/registry.inc b/includes/registry.inc index 76c503a87..450af6c14 100644 --- a/includes/registry.inc +++ b/includes/registry.inc @@ -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) { -- cgit v1.2.3