Commit 9df50e2f authored by webchick's avatar webchick

Issue #1599306 by bojanz, exratione: Fixed field_sync_field_status()...

Issue #1599306 by bojanz, exratione: Fixed field_sync_field_status() needlessly rebuilds module data, slows down installation dramatically.
parent d74c1441
......@@ -449,13 +449,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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment