function xmlsitemap_link_load

7.x xmlsitemap.module xmlsitemap_link_load($entity_type, $entity_id)
6.x xmlsitemap.module xmlsitemap_link_load($entity_type, $entity_id)

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

File

xmlsitemap/xmlsitemap.module, line 533
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;
}