You are here

function _xmlsitemap_term_excludes in XML sitemap 5

Get array of excluded vocabularies.

Return value

An array of vocabulary IDs to exclude.

Related topics

1 call to _xmlsitemap_term_excludes()
xmlsitemap_term_xmlsitemap_links in xmlsitemap_term/xmlsitemap_term.module
Implementation of hook_xmlsitemap_links().

File

xmlsitemap_term/xmlsitemap_term.module, line 36
Adds terms to the site map.

Code

function _xmlsitemap_term_excludes() {
  static $excludes;
  if (!isset($excludes)) {
    $excludes = array();
    $result = db_query("SELECT vid FROM {vocabulary}");
    while ($vocabulary = db_fetch_object($result)) {
      if (variable_get("xmlsitemap_term_vocabulary_priority_{$vocabulary->vid}", 0.5) < 0) {
        $excludes[] = $vocabulary->vid;
      }
    }
  }
  return $excludes;
}