You are here

function faq_nodeapi in Frequently Asked Questions 5.2

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

Implementation of hook_nodeapi().

File

./faq.module, line 261
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;
  }
}