You are here

function faq_nodeapi in Frequently Asked Questions 6

Same name and namespace in other branches
  1. 5.2 faq.module \faq_nodeapi()

Implements hook_nodeapi().

File

./faq.module, line 306
The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.

Code

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