function hierarchical_select_taxonomy_form_vocabulary_submit in Hierarchical Select 5.2
Same name and namespace in other branches
- 5.3 modules/hs_taxonomy.module \hierarchical_select_taxonomy_form_vocabulary_submit()
- 5 modules/taxonomy.inc \hierarchical_select_taxonomy_form_vocabulary_submit()
- 6.3 modules/hs_taxonomy.module \hierarchical_select_taxonomy_form_vocabulary_submit()
Additional submit handler for the taxonomy_form_vocabulary form.
File
- modules/
taxonomy.inc, line 334
Code
function hierarchical_select_taxonomy_form_vocabulary_submit($form_id, $form_values) {
$vid = $form_values['vid'];
$settings = array(
'status',
'save_lineage',
'enforce_deepest',
'all_option',
);
variable_set("hierarchical_select_multiple_{$vid}", $form_values['hierarchical_select_multiple']);
foreach ($settings as $setting) {
variable_set("hierarchical_select_{$setting}_{$vid}", $form_values['hierarchical_select'][$setting]);
}
if (isset($form_values['hierarchical_select']['level_labels'])) {
foreach ($form_values['hierarchical_select']['level_labels'] as $setting => $value) {
variable_set("hierarchical_select_{$setting}_{$vid}", $value);
}
}
if (isset($form_values['hierarchical_select']['dropbox'])) {
foreach ($form_values['hierarchical_select']['dropbox'] as $setting => $value) {
variable_set("hierarchical_select_{$setting}_{$vid}", $value);
}
}
}