function faq_delete in Frequently Asked Questions 5.2
Same name and namespace in other branches
- 5 faq.module \faq_delete()
- 6 faq.module \faq_delete()
- 7 faq.module \faq_delete()
Deletes an FAQ node from the database.
Parameters
&$node: Which node to delete.
File
- ./
faq.module, line 237 - 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);
}