function shs_form_taxonomy_overview_terms_submit in Simple hierarchical select 7
Implements hook_hook_taxonomy_term_delete().
1 string reference to 'shs_form_taxonomy_overview_terms_submit'
- shs_form_taxonomy_overview_terms_alter in ./
shs.module - Implements hook_form_FORM_ID_alter().
File
- ./
shs.module, line 1097 - Provides an additional widget for term fields to create hierarchical selects.
Code
function shs_form_taxonomy_overview_terms_submit(&$form, &$form_state) {
if (empty($form_state['complete form']['#vocabulary']->vid)) {
return;
}
// Clear shs cache for current vocabulary.
cache_clear_all("shs:{$form_state['complete form']['#vocabulary']->vid}", 'cache');
}