You are here

function forum_nodeapi in Drupal 5

Same name and namespace in other branches
  1. 4 modules/forum.module \forum_nodeapi()
  2. 6 modules/forum/forum.module \forum_nodeapi()

Implementation of hook_nodeapi().

File

modules/forum/forum.module, line 136
Enable threaded discussions about general topics.

Code

function forum_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'delete revision':
      db_query('DELETE FROM {forum} WHERE vid = %d', $node->vid);
      break;
  }
}