You are here

function select_with_style_admin_configure_form_submit in Select with Style 7

1 string reference to 'select_with_style_admin_configure_form_submit'
select_with_style_admin_configure in select_with_style/select_with_style.admin.inc
Menu callback for admin configuration settings.

File

select_with_style/select_with_style.admin.inc, line 95
select_with_style.admin.inc

Code

function select_with_style_admin_configure_form_submit($form, &$form_state) {
  $values = $form_state['values'];
  variable_set('select_with_style_use_in_views', $values['select_with_style_use_in_views']);
  variable_set('select_with_style_show_widgets_in_field_list', $values['select_with_style_show_widgets_in_field_list']);
  variable_set('select_with_style_def_hierarchy_depth_prefix', $values['select_with_style_def_hierarchy_depth_prefix']);
  variable_set('select_with_style_def_term_transform_callback', $values['select_with_style_def_term_transform_callback']);
  variable_set('select_with_style_def_multi_select_height', $values['select_with_style_def_multi_select_height']);
  variable_set('select_with_style_css_directory', $values['select_with_style_css_directory']);
  variable_set('select_with_style_def_css_files', $values['select_with_style_def_css_files']);
  drupal_set_message(t('Select with Style configuration has been saved.'));

  // Make sure Views exposed filters will be updated with the correct widgets.
  if (module_exists('views')) {
    views_invalidate_cache();
  }
}