You are here

function _xmlsitemap_node_excludes in XML sitemap 5

Get array of excluded types.

Return value

An array of node types to exclude.

Related topics

1 call to _xmlsitemap_node_excludes()
xmlsitemap_node_xmlsitemap_links in xmlsitemap_node/xmlsitemap_node.module
Implementation of hook_xmlsitemap_links().

File

xmlsitemap_node/xmlsitemap_node.module, line 36
Adds nodes to the site map.

Code

function _xmlsitemap_node_excludes() {
  static $excludes;
  if (!isset($excludes)) {
    $excludes = array();
    foreach (node_get_types() as $type => $name) {
      if (variable_get("xmlsitemap_node_type_priority_{$type}", 0.5) < 0) {
        $excludes[] = $type;
      }
    }
  }
  return $excludes;
}