function xmlsitemap_link_count in XML sitemap 6
Same name and namespace in other branches
- 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_link_count()
Return the number of links present in xmlsitemap table.
5 calls to xmlsitemap_link_count()
- xmlsitemap_chunk_count in ./
xmlsitemap.module - Return the number of chunk files.
- xmlsitemap_menu in ./
xmlsitemap.module - Implementation of hook_menu().
- xmlsitemap_output in ./
xmlsitemap.pages.inc - Menu callback; display the sitemap.
- _xmlsitemap_check_cache_files in ./
xmlsitemap.pages.inc - Check the cache files.
- _xmlsitemap_create_cache_files in ./
xmlsitemap.pages.inc - Create the cache files containing the sitemap.
File
- ./
xmlsitemap.module, line 285 - Creates a sitemap compatible with the sitemaps.org schema.
Code
function xmlsitemap_link_count() {
static $link_count;
if (!isset($link_count)) {
$link_count = db_result(db_query("SELECT COUNT(xsm.loc)" . xmlsitemap_sitemap_query()));
}
return $link_count;
}