You are here

function hierarchical_select_admin_import_submit in Hierarchical Select 6.3

Same name and namespace in other branches
  1. 5.3 hierarchical_select.admin.inc \hierarchical_select_admin_import_submit()
  2. 7.3 hierarchical_select.admin.inc \hierarchical_select_admin_import_submit()

Submit callback; config import form.

File

./hierarchical_select.admin.inc, line 226
Module settings and configuration administration UI.

Code

function hierarchical_select_admin_import_submit($form, &$form_state) {
  $config = unserialize($form_state['values']['interpreted_config']);
  $config_id = $config['config_id'];
  hierarchical_select_common_config_set($config_id, $config);
  drupal_set_message(t('Hierarchical Select configuration for %config_id imported!', array(
    '%config_id' => $config_id,
  )));
}