You are here

function xmlsitemap_taxonomy_vocabulary_insert in XML sitemap 7.2

Implements hook_taxonomy_vocabulary_insert().

File

xmlsitemap_taxonomy/xmlsitemap_taxonomy.module, line 95
Main file for XML sitemap taxonomy.

Code

function xmlsitemap_taxonomy_vocabulary_insert(stdClass $vocabulary) {
  if (isset($vocabulary->xmlsitemap)) {
    xmlsitemap_link_bundle_settings_save('taxonomy_term', $vocabulary->machine_name, $vocabulary->xmlsitemap);
  }
}