diff --git a/modules/system/system.install b/modules/system/system.install index e067444..6ebe8dc 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2967,5 +2967,28 @@ function system_update_7071() { /** * @} End of "defgroup updates-6.x-to-7.x" + */ + +/** + * @defgroup updates-7.x-extra Extra updates for 7.x + * @{ + */ + +/** + * Re-enable install profiles that may have been disabled by drush. + */ +function system_update_7072() { + if (!db_query("SELECT 1 FROM {system} WHERE type = 'profile' AND status = 1")->fetchField()) { + system_rebuild_module_data(); + db_update('system') + ->fields(array('status' => 1)) + ->condition('name', variable_get('install_profile', 'standard')) + ->execute(); + system_list_reset(); + } +} + +/** + * @} End of "defgroup updates-7.x-extra" * The next series of updates should start at 8000. */