function new_faq_delete in Frequently Asked Questions 7.2
Implements hook_delete().
Deletes an FAQ node from the database.
Parameters
&$node: Which node to delete.
File
- ./
faq.module, line 328 - The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.
Code
function new_faq_delete($node) {
db_delete('faq_weights')
->condition('nid', $node->nid)
->execute();
db_delete('faq_questions')
->condition('nid', $node->nid)
->execute();
}