You are here

function xmlsitemap_node_xmlsitemap_index_links in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap_node/xmlsitemap_node.module \xmlsitemap_node_xmlsitemap_index_links()

Implements hook_xmlsitemap_index_links().

1 call to xmlsitemap_node_xmlsitemap_index_links()
xmlsitemap_node_cron in xmlsitemap_node/xmlsitemap_node.module
Implements hook_cron().

File

xmlsitemap_node/xmlsitemap_node.module, line 54

Code

function xmlsitemap_node_xmlsitemap_index_links($limit) {
  if ($types = xmlsitemap_get_link_type_enabled_bundles('node')) {
    $query = db_query_range("SELECT n.nid FROM {node} n LEFT JOIN {xmlsitemap} x ON x.type = 'node' AND n.nid = x.id WHERE x.id IS NULL AND n.type IN (" . db_placeholders($types, 'varchar') . ") ORDER BY n.nid DESC", $types, 0, $limit);
    $nids = xmlsitemap_db_fetch_col($query);
    xmlsitemap_node_xmlsitemap_process_node_links($nids);
  }
}