function _quiz_insert_result_option in Quiz 7
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()
- 6.5 quiz.module \_quiz_insert_result_option()
- 7.4 quiz.module \_quiz_insert_result_option()
Insert one result option. @TODO This could be a dead function from now, need to remove this.
Parameters
$option: The option array to insert.
File
- ./
quiz.module, line 3167 - Quiz Module
Code
function _quiz_insert_result_option($option) {
db_insert('quiz_node_result_options')
->fields('nid', 'vid', 'option_name', 'option_summary', 'option_start', 'option_end')
->values(array(
$option['nid'],
$option['vid'],
$option['option_name'],
$option['option_summary'],
$option['option_start'],
$option['option_end'],
))
->execute();
}