You are here

function faq_insert in Frequently Asked Questions 5.2

Same name and namespace in other branches
  1. 6 faq.module \faq_insert()
  2. 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 212
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) VALUES(%d, %d, '%s')", $node->nid, $node->vid, $node->title);
}