You are here

function taxonomy_xml_taxonomy in Taxonomy import/export via XML 6.2

Catch taxonomy deletion so we know if they need to be rebuilt (by features)

File

./taxonomy_xml.module, line 2350
This module makes it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_taxonomy($op, $type, $item) {
  if ($op == 'delete' && $type == 'vocabulary') {
    $taxonomy_xml_imports = variable_get('taxonomy_xml_imports', array());
    $feature_name = str_replace('features_', '', $item['module']);
    unset($taxonomy_xml_imports[$feature_name]);
    variable_set('taxonomy_xml_imports', $taxonomy_xml_imports);

    // Removed this vocab from the known imported list of features.
  }
}