function xmlsitemap_sitemap_load in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_sitemap_load()
- 6.2 xmlsitemap.module \xmlsitemap_sitemap_load()
- 2.x xmlsitemap.module \xmlsitemap_sitemap_load()
Load an XML sitemap array from the database.
@codingStandardsIgnoreStart
Parameters
array $smid: An XML sitemap ID.
Return value
object The XML sitemap object.
Related topics
3 calls to xmlsitemap_sitemap_load()
- xmlsitemap_regenerate_batch_generate in ./
xmlsitemap.generate.inc - Batch callback; generate all pages of a sitemap.
- xmlsitemap_regenerate_batch_generate_index in ./
xmlsitemap.generate.inc - Batch callback; generate the index page of a sitemap.
- xmlsitemap_sitemap_load_by_context in ./
xmlsitemap.module - Load an XML sitemap array from the database based on its context.
File
- ./
xmlsitemap.module, line 376 - xmlsitemap XML sitemap
Code
function xmlsitemap_sitemap_load($smid) {
// @codingStandardsIgnoreEnd
$sitemap = xmlsitemap_sitemap_load_multiple(array(
$smid,
));
return $sitemap ? reset($sitemap) : FALSE;
}