You are here

function cdn_admin_settings_submit_show_cache_warning in CDN 7.2

Same name and namespace in other branches
  1. 6.2 cdn.admin.inc \cdn_admin_settings_submit_show_cache_warning()

Submit callback for all settings forms, that shows a warning whenever settings have been changed: the caches might need to be cleared.

1 string reference to 'cdn_admin_settings_submit_show_cache_warning'
_cdn_settings_form_prepare in ./cdn.admin.inc

File

./cdn.admin.inc, line 487
Settings administration UI.

Code

function cdn_admin_settings_submit_show_cache_warning($form, &$form_state) {
  drupal_set_message(t('You have just changed some settings. This might affect
                        the file URLs that have been cached in nodes, views,
                        aggregated CSS files or elsewhere.<br />
                        You now may want to clear all caches, to ensure that
                        the new CDN file URLs are used immediately. This can
                        be done in the <a href="!link">"Clear cache"
                        field set</a> on the "Performance" settings form.', array(
    '!link' => url('admin/config/development/performance'),
  )), 'info');
}