You are here

function select2_settings_form_submit in Select 2 7

Implements hook_form_submit().

1 string reference to 'select2_settings_form_submit'
select2_settings_form in pages/select2.admin.inc
Impelemnts hook_form().

File

pages/select2.admin.inc, line 161
admin forms for select2.

Code

function select2_settings_form_submit($form, &$form_state) {
  if ($form['setting_vtabs']['loading_rules']['select2_update_settings_by_ajax']['#default_value'] != $form_state['values']['select2_update_settings_by_ajax']) {
    drupal_flush_all_caches();
    drupal_set_message(t('Caches cleared.'));
  }
}