You are here

function themekey_ajax_settings_form_submit in ThemeKey 7.3

1 string reference to 'themekey_ajax_settings_form_submit'
themekey_ajax_settings_form in ./themekey_admin.inc
Form builder for the ThemeKey ajax settings form.

File

./themekey_admin.inc, line 639

Code

function themekey_ajax_settings_form_submit($form, &$form_state) {
  $form_state['values']['themekey_ajax_themes'] = array_values(array_filter($form_state['values']['themekey_ajax_themes'], 'is_string'));
  $old_themes = variable_get('themekey_ajax_themes', array());
  if (array_diff($old_themes, $form_state['values']['themekey_ajax_themes']) || array_diff($form_state['values']['themekey_ajax_themes'], $old_themes)) {

    // fast deletion of menu cache (truncate)
    cache_clear_all('*', 'cache_menu', TRUE);
  }
}