function xmlsitemap_link_load in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.module \xmlsitemap_link_load()
Load a specific sitemap link from the database.
Parameters
$entity_type: A string with the entity type.
$entity_id: An integer with the entity ID.
Return value
A sitemap link (array) or FALSE if the conditions were not found.
Related topics
13 calls to xmlsitemap_link_load()
- XMLSitemapTestHelper::assertNoSitemapLink in ./
xmlsitemap.test - XMLSitemapTestHelper::assertNotSitemapLinkValues in ./
xmlsitemap.test - XMLSitemapTestHelper::assertSitemapLink in ./
xmlsitemap.test - XMLSitemapTestHelper::assertSitemapLinkNotVisible in ./
xmlsitemap.test - XMLSitemapTestHelper::assertSitemapLinkValues in ./
xmlsitemap.test
File
- ./
xmlsitemap.module, line 530 - Main file for the xmlsitemap module.
Code
function xmlsitemap_link_load($entity_type, $entity_id) {
$link = xmlsitemap_link_load_multiple(array(
'type' => $entity_type,
'id' => $entity_id,
));
return $link ? reset($link) : FALSE;
}