You are here

function hierarchical_select_common_config_form_submit in Hierarchical Select 6.3

Same name and namespace in other branches
  1. 5.3 includes/common.inc \hierarchical_select_common_config_form_submit()
  2. 7.3 includes/common.inc \hierarchical_select_common_config_form_submit()

Submit callback for the hierarchical_select_common_config_form form.

3 string references to 'hierarchical_select_common_config_form_submit'
hs_content_taxonomy_config_form in modules/hs_content_taxonomy.admin.inc
Form definition; configuration form for Hierarchical Select as the widget for a content_taxonomy field.
hs_taxonomy_form_taxonomy_form_vocabulary_alter in modules/hs_taxonomy.module
hs_taxonomy_views_config_form in modules/hs_taxonomy_views.module
Form definition; configuration form for Hierarchical Select as the widget for a Taxonomy filter.

File

includes/common.inc, line 360
Functions used by more than one Hierarchical Select implementation.

Code

function hierarchical_select_common_config_form_submit($form, &$form_state) {
  $config = _hierarchical_select_get_form_item_by_parents($form_state['values'], $form['#hs_common_config_form_parents']);

  // Don't include the value of the live preview in the config.
  unset($config['live_preview']);
  hierarchical_select_common_config_set($config['config_id'], $config);
}