You are here

function cdn_admin_settings_submit_show_cache_warning in CDN 6.2

Same name and namespace in other branches
  1. 7.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 507
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 the cached data, to ensure
                        the new CDN file URLs are used immediately. This can
                        be done in the <a href="!link">"Clear cached data"
                        field set</a> in the "Performance" settings form.', array(
    '!link' => url('admin/settings/performance', array(
      'fragment' => 'clear-cache',
    )),
  )), 'info');
}