function hook_xmlsitemap_link_update in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_link_update()
- 7.2 xmlsitemap.api.php \hook_xmlsitemap_link_update()
- 2.x xmlsitemap.api.php \hook_xmlsitemap_link_update()
Inform modules that an XML sitemap link has been updated.
Parameters
$link: Associative array defining an XML sitemap link as passed into xmlsitemap_link_save().
See also
1 invocation of hook_xmlsitemap_link_update()
- xmlsitemap_link_save in ./
xmlsitemap.module - Saves or updates a sitemap link.
File
- ./
xmlsitemap.api.php, line 100 - Hooks provided by the XML sitemap module.
Code
function hook_xmlsitemap_link_update(array $link) {
db_update('mytable')
->fields(array(
'link_type' => $link['type'],
'link_id' => $link['id'],
'link_status' => $link['status'],
))
->execute();
}