You are here

function xmlsitemap_taxonomy_xmlsitemap_index_links in XML sitemap 7.2

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

Implements hook_xmlsitemap_index_links().

1 call to xmlsitemap_taxonomy_xmlsitemap_index_links()
xmlsitemap_taxonomy_cron in xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
Implements hook_cron().

File

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

Code

function xmlsitemap_taxonomy_xmlsitemap_index_links($limit) {
  if ($bundles = xmlsitemap_get_link_type_enabled_bundles('taxonomy_term')) {
    $tids = db_query_range("SELECT t.tid FROM {taxonomy_term_data} t INNER JOIN {taxonomy_vocabulary} tv USING (vid) LEFT JOIN {xmlsitemap} x ON x.type = 'taxonomy_term' AND t.tid = x.id WHERE x.id IS NULL AND tv.machine_name IN (:bundles) ORDER BY t.tid DESC", 0, $limit, array(
      ':bundles' => $bundles,
    ))
      ->fetchCol();
    xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links($tids);
  }
}