function support_comment_delete in Support Ticketing System 7
Implementation of hook_comment_delete().
File
- ./
support.module, line 1198 - support.module
Code
function support_comment_delete($comment) {
if (is_array($comment)) {
$node = node_load($comment['nid']);
}
else {
$node = node_load($comment->nid);
}
if ($node->type == 'support_ticket') {
db_delete('support_ticket_comment')
->condition('cid', $comment->cid)
->execute();
_support_comment_update_node($comment->nid);
}
}