function hook_xmlsitemap_link_update in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_link_update()
- 6.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
array $link: Associative array defining an XML sitemap link as passed into xmlsitemap_link_save().
array $context: An optional context array containing data related to the link.
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 124 - Hooks provided by the XML sitemap module.
Code
function hook_xmlsitemap_link_update(array $link, array $context) {
db_update('mytable')
->fields(array(
'link_type' => $link['type'],
'link_id' => $link['id'],
'link_status' => $link['status'],
))
->execute();
}