You are here

function xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_taxonomy/xmlsitemap_taxonomy.module \xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links()

Process taxonomy term sitemap links.

Parameters

array $tids: An array of taxonomy term IDs.

1 call to xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links()
xmlsitemap_taxonomy_xmlsitemap_index_links in xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
Implements hook_xmlsitemap_index_links().
1 string reference to 'xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links'
xmlsitemap_taxonomy_entity_info_alter in xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
Implements hook_entity_info_alter().

File

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

Code

function xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links(array $tids) {
  $terms = taxonomy_term_load_multiple($tids);
  foreach ($terms as $term) {
    $link = xmlsitemap_taxonomy_create_link($term);
    xmlsitemap_link_save($link, array(
      $link['type'] => $term,
    ));
  }
}