function xmlsitemap_link_delete in XML sitemap 7.2
Same name and namespace in other branches
- 6.2 xmlsitemap.module \xmlsitemap_link_delete()
Delete a specific sitemap link from the database.
If a visible sitemap link was deleted, this will automatically set the regenerate needed flag.
Parameters
string $entity_type: A string with the entity type.
int $entity_id: An integer with the entity ID.
Return value
int The number of links that were deleted.
Related topics
8 calls to xmlsitemap_link_delete()
- XMLSitemapUnitTest::testLinkDelete in ./
xmlsitemap.test - Tests for xmlsitemap_link_delete().
- XMLSitemapUnitTest::testMinimumLifetime in ./
xmlsitemap.test - Test that the sitemap will not be genereated before the lifetime expires.
- xmlsitemap_custom_delete_link_form_submit in xmlsitemap_custom/
xmlsitemap_custom.admin.inc - Delete Link Form Submit.
- xmlsitemap_custom_scan_directories in xmlsitemap_custom/
xmlsitemap_custom.scan.inc - Scan directories and keep matching subtrees of the custom XML sitemap.
- xmlsitemap_menu_menu_link_delete in xmlsitemap_menu/
xmlsitemap_menu.module - Implements hook_menu_link_delete().
File
- ./
xmlsitemap.module, line 743 - xmlsitemap XML sitemap
Code
function xmlsitemap_link_delete($entity_type, $entity_id) {
$conditions = array(
'type' => $entity_type,
'id' => $entity_id,
);
return xmlsitemap_link_delete_multiple($conditions);
}