You are here

function pathauto_i18n_taxonomy_taxonomy_term_insert in Pathauto i18n 8

Same name and namespace in other branches
  1. 7 modules/pathauto_i18n_taxonomy/pathauto_i18n_taxonomy.module \pathauto_i18n_taxonomy_taxonomy_term_insert()

Implements hook_taxonomy_term_insert().

File

modules/pathauto_i18n_taxonomy/pathauto_i18n_taxonomy.module, line 55
Provides tools for creating multilanguage aliases for taxonomy terms.

Code

function pathauto_i18n_taxonomy_taxonomy_term_insert($term) {
  pathauto_i18n_init_property($term, 'taxonomy', $term->vocabulary_machine_name);
  pathauto_i18n_process_entity_object($term, 'taxonomy_term', $term->path['pathauto_i18n_status'], 'insert');
}