You are here

function hierarchical_select_common_config_form_submit in Hierarchical Select 7.3

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

Submit callback for the hierarchical_select_common_config_form form.

1 string reference to 'hierarchical_select_common_config_form_submit'
hs_taxonomy_form_field_ui_widget_type_form_alter in modules/hs_taxonomy.module
Implements hook_form_FORMID_alter().

File

includes/common.inc, line 466
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);
}