function faq_insert in Frequently Asked Questions 6
Same name and namespace in other branches
- 5.2 faq.module \faq_insert()
- 7 faq.module \faq_insert()
Inserts the faq node question text into the 'faq_questions' table.
Parameters
$node: The node object.
1 call to faq_insert()
- faq_update in ./
faq.module - Updates the faq node question text in the 'faq_questions' table.
File
- ./
faq.module, line 251 - 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_insert($node) {
$ret = db_query("INSERT INTO {faq_questions} (nid, vid, question, detailed_question) VALUES(%d, %d, '%s', '%s')", $node->nid, $node->vid, $node->title, $node->detailed_question);
}