summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Jacobs2016-01-21 22:20:15 (GMT)
committerRyan Jacobs2016-01-21 22:20:15 (GMT)
commit5cf16093ec83c58b02feacc08a57c5e30d297b20 (patch)
treed01b6dbebdc4abbc2a2fa5fbf9146c57b5d79ae6
parent6b16d7288ee766ef3227fb4e6fbc447fb6325a6b (diff)
Make caching warning more visible by breaking it out as a separate warning message.7.x-1.x
-rw-r--r--file_replace.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/file_replace.module b/file_replace.module
index b2d7888..ba9e4d1 100644
--- a/file_replace.module
+++ b/file_replace.module
@@ -270,7 +270,8 @@ function file_replace_upload_validate($form, &$form_state) {
if (module_exists('image')) {
image_path_flush($replaced_file->uri);
}
- drupal_set_message(t('The file replacement was successful. Please note that any users who recently accessed the file path may continue to see the old version for a short time due to local caching within their network and/or browser.'));
+ drupal_set_message(t('The file replacement was successful.'));
+ drupal_set_message(t('Please note that any users who recently accessed the file path may continue to see the old version for a short time due to local caching within their network and/or browser.'), 'warning');
}
else {
// If no replacement file was saved, and there were no other validation