xmlsitemap_node_comment($comment, $op)
contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module, line 293
Implementation of hook_comment().
| Name | Description |
|---|---|
| XML Sitemap | Notify search engines of site updates. |
function xmlsitemap_node_comment($comment, $op) {
$comment = (object) $comment;
switch ($op) {
case 'insert':
case 'update':
case 'moderate':
case 'delete':
db_query("UPDATE {xmlsitemap_node} SET previous_comment = last_comment, last_comment = %d WHERE nid = %d", $comment->timestamp, $comment->nid);
if (variable_get('xmlsitemap_node_count_comments', TRUE)) {
xmlsitemap_update_sitemap();
}
break;
}
}