You are here

function _quiz_insert_result_option in Quiz 7.4

Same name and namespace in other branches
  1. 5.2 quiz.module \_quiz_insert_result_option()
  2. 6.6 quiz.module \_quiz_insert_result_option()
  3. 6.2 quiz.module \_quiz_insert_result_option()
  4. 6.3 quiz.module \_quiz_insert_result_option()
  5. 6.4 quiz.module \_quiz_insert_result_option()
  6. 6.5 quiz.module \_quiz_insert_result_option()
  7. 7 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 3450
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();
}