You are here

function xmlsitemap_link_count in XML sitemap 5.2

Same name and namespace in other branches
  1. 6 xmlsitemap.module \xmlsitemap_link_count()

Return the number of links in the sitemap.

4 calls to xmlsitemap_link_count()
xmlsitemap_exit in xmlsitemap/xmlsitemap.module
Implementation of hook_exit().
xmlsitemap_menu in xmlsitemap/xmlsitemap.module
Implementation of hook_menu().
xmlsitemap_output in xmlsitemap/xmlsitemap.module
Menu callback; display the sitemap.
_xmlsitemap_output_index in xmlsitemap/xmlsitemap.module
Generate the sitemap index.


xmlsitemap/xmlsitemap.module, line 338
Creates a sitemap compatible with the schema.


function xmlsitemap_link_count() {
  static $link_count;
  if (!isset($link_count)) {
    $link_count = db_result(db_query("SELECT COUNT(*) FROM {xmlsitemap}"));
  return $link_count;