You are here

function xmlsitemap_node_xmlsitemap_process_node_links in XML sitemap 6.2

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

Process node sitemap links.

Parameters

$nids: An array of node IDs.

1 call to xmlsitemap_node_xmlsitemap_process_node_links()
xmlsitemap_node_xmlsitemap_index_links in xmlsitemap_node/xmlsitemap_node.module
Implements hook_xmlsitemap_index_links().
1 string reference to 'xmlsitemap_node_xmlsitemap_process_node_links'
xmlsitemap_node_xmlsitemap_link_info in xmlsitemap_node/xmlsitemap_node.module
Implements hook_xmlsitemap_link_info().

File

xmlsitemap_node/xmlsitemap_node.module, line 68

Code

function xmlsitemap_node_xmlsitemap_process_node_links(array $nids) {
  foreach ($nids as $nid) {
    if ($node = node_load($nid, NULL, TRUE)) {
      $link = xmlsitemap_node_create_link($node);
      xmlsitemap_link_save($link);
    }
  }
}