You are here

function _xmlsitemap_link_count in XML sitemap 5

Count the total number of links in the site.

Return value

An integer containing the total number of links

Related topics

2 calls to _xmlsitemap_link_count()
_xmlsitemap_output in ./xmlsitemap.module
Menu callback; display the site map.
_xmlsitemap_update_cache in ./xmlsitemap.module
Update the cached site map files.


./xmlsitemap.module, line 381
Creates a site map compatible with the schema.


function _xmlsitemap_link_count() {
  static $count;
  $count = isset($count) ? $count : count(_xmlsitemap_links());
  return $count;