You are here

function advagg_font_admin_settings_form_submit in Advanced CSS/JS Aggregation 7.2

Submit callback, clear out the advagg cache bin.

Related topics

1 string reference to 'advagg_font_admin_settings_form_submit'
advagg_font_admin_settings_form in advagg_font/advagg_font.admin.inc
Form builder; Configure advagg settings.

File

advagg_font/advagg_font.admin.inc, line 194
Admin page callbacks for the advagg font module.

Code

function advagg_font_admin_settings_form_submit($form, &$form_state) {

  // Clear caches.
  advagg_cache_clear_admin_submit();

  // Disable cookie and local storage if ffo is disabled.
  if (empty($form_state['values']['advagg_font_fontfaceobserver'])) {
    $form_state['values']['advagg_font_cookie'] = 0;
    $form_state['values']['advagg_font_storage'] = 0;
  }

  // Disable no fout if cookies and local storage are disabled.
  if (empty($form_state['values']['advagg_font_cookie']) && empty($form_state['values']['advagg_font_storage'])) {
    $form_state['values']['advagg_font_no_fout'] = 0;
  }
}