function forum_node_delete

cis7 forum.module forum_node_delete($node)
cle7 forum.module forum_node_delete($node)
elmsmedia7 forum.module forum_node_delete($node)
icor7 forum.module forum_node_delete($node)
meedjum_blog7 forum.module forum_node_delete($node)
mooc7 forum.module forum_node_delete($node)

Implements hook_node_delete().

File

modules/forum/forum.module, line 414
Provides discussion forums.

Code

function forum_node_delete($node) {
  if (_forum_node_check_node_type($node)) {
    db_delete('forum')->condition('nid', $node->nid)->execute();
    db_delete('forum_index')->condition('nid', $node->nid)->execute();
  }
}