You are here

function uc_catalog_taxonomy_term_insert in Ubercart 7.3

Implements hook_taxonomy_term_insert().

File

uc_catalog/uc_catalog.module, line 189
Ubercart Catalog module.

Code

function uc_catalog_taxonomy_term_insert($term) {
  if (module_exists('pathauto')) {
    if ($term->name) {
      module_load_include('inc', 'uc_catalog', 'uc_catalog.pathauto');
      $count = _uc_catalog_pathauto_alias($term, 'insert');
    }
  }
}