You are here

function shs_taxonomy_term_update in Simple hierarchical select 7

Implements hook_hook_taxonomy_term_update().

File

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

Code

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

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