function advagg_mod_magic_form_validate

nittany7 advagg_mod.module advagg_mod_magic_form_validate($form, &$form_state)
mooc7 advagg_mod.module advagg_mod_magic_form_validate($form, &$form_state)

Form validation handler. Disable certian magic settings before being saved.

1 string reference to 'advagg_mod_magic_form_validate'
advagg_mod_magic in modules/contrib/advagg/advagg_mod/advagg_mod.module
Implements hook_magic().

File

modules/contrib/advagg/advagg_mod/advagg_mod.module, line 621
Advanced aggregation modifier module.

Code

function advagg_mod_magic_form_validate($form, &$form_state) {
  // Disable magic functionality if it is a duplicate of AdvAgg.
  $form_state['values']['magic_embedded_mqs'] = 0;
  $form_state['values']['magic_footer_js'] = 0;
  $form_state['values']['magic_library_head'] = 0;
  $form_state['values']['magic_experimental_js'] = 0;
}