You are here

function xmlsitemap_xmlsitemap_links in XML sitemap 8

Same name and namespace in other branches
  1. 5 xmlsitemap.module \xmlsitemap_xmlsitemap_links()
  2. 6.2 xmlsitemap.xmlsitemap.inc \xmlsitemap_xmlsitemap_links()
  3. 7.2 xmlsitemap.xmlsitemap.inc \xmlsitemap_xmlsitemap_links()
  4. 2.x xmlsitemap.module \xmlsitemap_xmlsitemap_links()

Implements hook_xmlsitemap_links().

File

./xmlsitemap.module, line 1980
xmlsitemap XML sitemap

Code

function xmlsitemap_xmlsitemap_links() {

  // Frontpage link.
  $links[] = [
    'type' => 'frontpage',
    'id' => 0,
    'loc' => '/',
  ];
  return $links;
}