You are here

function shs_taxonomy_term_insert in Simple hierarchical select 7

Implements hook_hook_taxonomy_term_insert().

File

./shs.module, line 1068
Provides an additional widget for term fields to create hierarchical selects.

Code

function shs_taxonomy_term_insert($term) {
  if (empty($term->parent)) {
    return;
  }

  // Clear shs cache for current vocabulary.
  cache_clear_all("shs:{$term->vid}", 'cache');
}