You are here

function bootstrap_site_alert_custom_submit in Bootstrap Site Alert 7

Additional Submit callback for settings form.

1 string reference to 'bootstrap_site_alert_custom_submit'
bootstrap_site_alert_admin in includes/bootstrap_site_alert.admin.inc
Configuration Form for the site alerts.

File

includes/bootstrap_site_alert.admin.inc, line 69
The bootstrap_site_alert Admin Settings file.

Code

function bootstrap_site_alert_custom_submit() {

  // Clear the page cache to make sure the message is seen.
  cache_clear_all('*', 'cache_page', TRUE);

  // Save a random key so that we can use it to track a 'dismiss' action for
  // this particular alert.
  variable_set('bootstrap_site_alert_key', drupal_random_key());
}