summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system-messages.css2
-rw-r--r--modules/system/system.admin.inc16
2 files changed, 6 insertions, 12 deletions
diff --git a/modules/system/system-messages.css b/modules/system/system-messages.css
index e68b0b8aa..0fe890a6b 100644
--- a/modules/system/system-messages.css
+++ b/modules/system/system-messages.css
@@ -12,7 +12,7 @@ div.messages {
}
div.error,
-tr.error {
+table tr.error {
background-color: #fcc;
}
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index be9c63001..d5de2f811 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1243,16 +1243,12 @@ function system_modules_submit($form, &$form_state) {
drupal_set_message(t('The configuration options have been saved.'));
}
- // Clear all caches.
- registry_rebuild();
- system_rebuild_theme_data();
- drupal_theme_rebuild();
- node_types_rebuild();
- menu_rebuild();
- cache_clear_all('schema', 'cache');
+ // Clear all caches. We need to invoke drupal_flush_all_caches() to ensure
+ // that also dependent caches are flushed, e.g. the filter cache and field
+ // cache, and also registered themes are rebuilt, since modules can also
+ // register themes.
+ drupal_flush_all_caches();
entity_info_cache_clear();
- drupal_clear_css_cache();
- drupal_clear_js_cache();
$form_state['redirect'] = 'admin/modules';
@@ -1263,8 +1259,6 @@ function system_modules_submit($form, &$form_state) {
// Synchronize to catch any actions that were added or removed.
actions_synchronize();
-
- return;
}
/**