function similarterms_node_delete in Similar By Terms 7
Same name and namespace in other branches
- 6 similarterms.module \similarterms_node_delete()
Implements hook_node_delete().
1 call to similarterms_node_delete()
- similarterms_node_save in ./
similarterms.module - Function to populate overrides table
File
- ./
similarterms.module, line 381 - Similar By Terms module displays a block with similar content based on taxonomy terms.
Code
function similarterms_node_delete($node, $vid = NULL) {
if (!variable_get('similarterms_override_options', 0)) {
return;
}
$query = "DELETE FROM {similarterms_override} WHERE nid = %d";
$args = array(
$node->nid,
);
if ($vid) {
$query .= " AND vid = %d";
$args[] = $vid;
}
db_query($query, $args);
}