function xmlsitemap_node_convert_change in Node Convert 7
Implementation of node_convert_change().
File
- modules/
xmlsitemap.node_convert_behavior.inc, line 13 - XML Site-map behavior.
Code
function xmlsitemap_node_convert_change($data, $op) {
if ($op == 'insert') {
$node = $data['node'];
// Change the node type stored in the xmlsitemap table.
$link = xmlsitemap_link_load('node', $node->nid);
$link['subtype'] = $data['dest_node_type'];
xmlsitemap_link_save($link);
}
}