You are here

function _paging_xmlsitemap_excludes in Paging 5

Get node types for which paging is disabled.

Return value

An array of node types.

1 call to _paging_xmlsitemap_excludes()
paging_xmlsitemap_xmlsitemap_links in contrib/paging_xmlsitemap/paging_xmlsitemap.module
Implementation of hook_xmlsitemap_links().

File

contrib/paging_xmlsitemap/paging_xmlsitemap.module, line 75
Adds node paging links to the site map.

Code

function _paging_xmlsitemap_excludes() {
  static $excludes = NULL;
  if (!isset($excludes)) {
    foreach (node_get_types() as $type => $name) {
      $types[] = $type;
    }
    $excludes = array_diff($types, variable_get('paging_node_types_enabled', array()));
  }
  return $excludes;
}