function forum_node_delete

Implements hook_node_delete().

File

modules/forum/forum.module, line 414

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();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.