You are here

function faq_delete in Frequently Asked Questions 7

Same name and namespace in other branches
  1. 5.2 faq.module \faq_delete()
  2. 5 faq.module \faq_delete()
  3. 6 faq.module \faq_delete()

Implements hook_delete().

Deletes an FAQ node from the database.

File

./faq.module, line 290
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_delete($node) {
  db_delete('faq_weights')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('faq_questions')
    ->condition('nid', $node->nid)
    ->execute();
}