You are here

function faq_delete in Frequently Asked Questions 6

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

Deletes an FAQ node from the database.

Parameters

&$node: Which node to delete.

File

./faq.module, line 276
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_query("DELETE FROM {faq_weights} WHERE nid = '%d'", $node->nid);
  db_query("DELETE FROM {faq_questions} WHERE nid = '%d'", $node->nid);
}