diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-07-03 11:44:13 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-07-03 11:44:13 -0700 |
commit | 43b01fe4c3fd23ea73de88702b4c0aa118e84dcb (patch) | |
tree | e954708a8c98c8987ef4cd0a675a37ee55bee325 | |
parent | 3ac0d15345784d403ff29202cdaeb54a89f13e41 (diff) | |
download | brdo-43b01fe4c3fd23ea73de88702b4c0aa118e84dcb.tar.gz brdo-43b01fe4c3fd23ea73de88702b4c0aa118e84dcb.tar.bz2 |
Issue #1599306 by bojanz, exratione: Fixed field_sync_field_status() needlessly rebuilds module data, slows down installation dramatically.
-rw-r--r-- | modules/field/field.module | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/field/field.module b/modules/field/field.module index 671fc0ad1..6fc97a2bf 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -423,13 +423,9 @@ function field_modules_disabled($modules) { function field_sync_field_status() { // Refresh the 'active' and 'storage_active' columns according to the current // set of enabled modules. - $all_modules = system_rebuild_module_data(); - $modules = array(); - foreach ($all_modules as $module_name => $module) { - if ($module->status) { - $modules[] = $module_name; - field_associate_fields($module_name); - } + $modules = module_list(); + foreach ($modules as $module_name) { + field_associate_fields($module_name); } db_update('field_config') ->fields(array('active' => 0)) |