function shs_form_taxonomy_form_term_alter in Simple hierarchical select 7
Implements hook_form_FORM_ID_alter().
File
- ./
shs.module, line 1108 - Provides an additional widget for term fields to create hierarchical selects.
Code
function shs_form_taxonomy_form_term_alter(&$form, &$form_state, $form_id) {
if (isset($form_state['confirm_delete']) && isset($form_state['values']['vid'])) {
// Add custom submit handler to update cache.
array_unshift($form['#submit'], 'shs_form_taxonomy_form_term_submit');
}
}