You are here

function xmlsitemap_taxonomy_xmlsitemap_index_links in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.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 54

Code

function xmlsitemap_taxonomy_xmlsitemap_index_links($limit) {
  if ($vids = xmlsitemap_get_link_type_enabled_bundles('taxonomy_term')) {
    $query = db_query_range("SELECT t.tid FROM {term_data} t LEFT JOIN {xmlsitemap} x ON x.type = 'taxonomy_term' AND t.tid = x.id WHERE x.id IS NULL AND t.vid IN (" . db_placeholders($vids) . ") ORDER BY t.tid DESC", $vids, 0, $limit);
    $tids = xmlsitemap_db_fetch_col($query);
    xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links($tids);
  }
}