You are here

function xmlsitemap_node_xmlsitemap_link_status in XML sitemap 6

Implementation of hook_xmlsitemap_link_status().

File

xmlsitemap_node/xmlsitemap_node.module, line 281
Adds nodes to the sitemap.

Code

function xmlsitemap_node_xmlsitemap_link_status($type, $id, $sid) {
  if (!($node = node_load($id, NULL, TRUE))) {
    return XMLSITEMAP_LINK_DISABLED;
  }
  if ($node->status) {
    return 0;
  }
  return XMLSITEMAP_LINK_DISABLED;
}