function _quiz_insert_result_option in Quiz 6.5
Same name and namespace in other branches
- 5.2 quiz.module \_quiz_insert_result_option()
- 6.6 quiz.module \_quiz_insert_result_option()
- 6.2 quiz.module \_quiz_insert_result_option()
- 6.3 quiz.module \_quiz_insert_result_option()
- 6.4 quiz.module \_quiz_insert_result_option()
- 7 quiz.module \_quiz_insert_result_option()
- 7.4 quiz.module \_quiz_insert_result_option()
Insert one result option.
Parameters
$option: The option array to insert.
2 calls to _quiz_insert_result_option()
- _quiz_insert_resultoptions in ./
quiz.module - Insert call specific to result options.
- _quiz_update_resultoptions in ./
quiz.module - Modify result of option-specific updates.
File
- ./
quiz.module, line 2100 - Quiz Module
Code
function _quiz_insert_result_option($option) {
$sql = "INSERT INTO {quiz_node_result_options} (nid, vid, option_name, option_summary, option_start, option_end)\n VALUES(%d, %d, '%s', '%s', %d, %d)";
$values = array(
$option['nid'],
$option['vid'],
$option['option_name'],
$option['option_summary'],
$option['option_start'],
$option['option_end'],
);
db_query($sql, $values);
}