You are here

function _quiz_insert_result_option in Quiz 6.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.5 quiz.module \_quiz_insert_result_option()
  6. 7 quiz.module \_quiz_insert_result_option()
  7. 7.4 quiz.module \_quiz_insert_result_option()

Insert one result option.

Parameters

$option: The option array to insert.

1 call to _quiz_insert_result_option()
_quiz_insert_resultoptions in ./quiz.module
Insert call specific to result options.

File

./quiz.module, line 3053
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);
}