function xmlsitemap_sitemap_load in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_sitemap_load()
- 6.2 xmlsitemap.module \xmlsitemap_sitemap_load()
- 7.2 xmlsitemap.module \xmlsitemap_sitemap_load()
Load an XML sitemap array from the database.
Parameters
mixed $smid: An XML sitemap ID.
Return value
\Drupal\xmlsitemap\XmlSitemapInterface The XML sitemap object.
Related topics
2 calls to xmlsitemap_sitemap_load()
- XmlSitemapGenerator::regenerateBatchGenerateIndex in src/
XmlSitemapGenerator.php - Batch callback; generate the index page of a sitemap.
- xmlsitemap_sitemap_save in ./
xmlsitemap.module - Save changes to an XML sitemap or add a new XML sitemap.
File
- ./
xmlsitemap.module, line 306 - xmlsitemap XML sitemap
Code
function xmlsitemap_sitemap_load($smid) {
$sitemap = xmlsitemap_sitemap_load_multiple([
$smid,
]);
return $sitemap ? reset($sitemap) : FALSE;
}