You are here

function boost_admin_site_offline_submit in Boost 6

1 string reference to 'boost_admin_site_offline_submit'
boost_form_alter in ./boost.module
Implementation of hook_form_alter(). Performs alterations before a form is rendered.

File

./boost.admin.inc, line 1245
All the code for the Boost module's administrative interface.

Code

function boost_admin_site_offline_submit($form, &$form_state) {
  if (!empty($form_state['values']['site_offline']) && BOOST_CLEAR_CACHE_OFFLINE) {
    if (boost_cache_clear_all()) {
      drupal_set_message(t('Boost: Static page cache cleared.'), 'warning');
    }
  }
}