You are here

function forum_nodeapi in Drupal 4

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

Implementation of hook_nodeapi().

File

modules/forum.module, line 139
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;
  }
}