You are here

function hierarchical_select_common_config_form_submit in Hierarchical Select 5.3

Same name and namespace in other branches
  1. 6.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.

File

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

Code

function hierarchical_select_common_config_form_submit($form_id, $form_values, $parents) {
  $config = _hierarchical_select_get_form_item_by_parents($form_values, $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);
}