function hierarchical_select_taxonomy_form_vocabulary_validate in Hierarchical Select 5.2
Same name and namespace in other branches
- 5.3 modules/hs_taxonomy.module \hierarchical_select_taxonomy_form_vocabulary_validate()
- 6.3 modules/hs_taxonomy.module \hierarchical_select_taxonomy_form_vocabulary_validate()
Additional validate handler for the taxonomy_form_vocabulary form.
File
- modules/
taxonomy.inc, line 323
Code
function hierarchical_select_taxonomy_form_vocabulary_validate($form_id, $form_values, $form) {
// Enable Taxonomy's "multiple select" setting when:
// - Hierarchical Select's "multiple select" setting is enabled
// - Hierarchical Select's "save term lineage" setting is enabled
$multiple_select_enabled = $form_values['hierarchical_select_multiple'] || _taxonomy_hierarchical_select_get_save_linage($form_values['vid']);
form_set_value($form['multiple'], (int) $multiple_select_enabled);
}