diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-04 05:09:40 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-04 05:09:40 +0000 |
commit | b405e61329ba3d48602c9d24d641a8f4e099ef09 (patch) | |
tree | 30a85a34fbb91ba6d8d5c842464863168638f952 /includes/registry.inc | |
parent | 65a1528f0529306e3a7a84208c435cfb7cebe3a5 (diff) | |
download | brdo-b405e61329ba3d48602c9d24d641a8f4e099ef09.tar.gz brdo-b405e61329ba3d48602c9d24d641a8f4e099ef09.tar.bz2 |
#504256 by Berdir and sun: Fix notice on modules page when first scanning a module.
Diffstat (limited to 'includes/registry.inc')
-rw-r--r-- | includes/registry.inc | 8 |
1 files changed, 1 insertions, 7 deletions
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) { |