summaryrefslogtreecommitdiff
path: root/includes/install.core.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-01 18:37:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-01 18:37:23 +0000
commitbf751d9a94dca1b48f30a061aa09049c977fbda1 (patch)
tree511a51fe8ae9f7675e5ea148ada52cc74e9f0d15 /includes/install.core.inc
parent0223bf1dc25a77671618733ee7e76fba958013d8 (diff)
downloadbrdo-bf751d9a94dca1b48f30a061aa09049c977fbda1.tar.gz
brdo-bf751d9a94dca1b48f30a061aa09049c977fbda1.tar.bz2
#651086 follow-up by carols8f: Fix cache clearing is an ineffective mess.
Diffstat (limited to 'includes/install.core.inc')
-rw-r--r--includes/install.core.inc13
1 files changed, 10 insertions, 3 deletions
diff --git a/includes/install.core.inc b/includes/install.core.inc
index 60ab8e60f..9cbfd059c 100644
--- a/includes/install.core.inc
+++ b/includes/install.core.inc
@@ -1403,6 +1403,7 @@ function install_profile_modules(&$install_state) {
'operations' => $operations,
'title' => st('Installing @drupal', array('@drupal' => drupal_install_profile_distribution_name())),
'error_message' => st('The installation has encountered an error.'),
+ 'finished' => '_install_profile_modules_finished',
);
return $batch;
}
@@ -1527,9 +1528,6 @@ function install_finished(&$install_state) {
// registered by the install profile are registered correctly.
drupal_flush_all_caches();
- // Register actions declared by any modules.
- actions_synchronize();
-
// Remember the profile which was used.
variable_set('install_profile', drupal_get_profile());
@@ -1565,6 +1563,15 @@ function _install_module_batch($module, $module_name, &$context) {
}
/**
+ * 'Finished' callback for module installation batch.
+ */
+function _install_profile_modules_finished($success, $results, $operations) {
+ // Flush all caches to complete the module installation process. Subsequent
+ // installation tasks will now have full access to the profile's modules.
+ drupal_flush_all_caches();
+}
+
+/**
* Checks installation requirements and reports any errors.
*/
function install_check_requirements($install_state) {