You are here

function _quiz_update_resultoptions in Quiz 8.4

Same name and namespace in other branches
  1. 5.2 quiz.module \_quiz_update_resultoptions()
  2. 6.6 quiz.module \_quiz_update_resultoptions()
  3. 6.2 quiz.module \_quiz_update_resultoptions()
  4. 6.3 quiz.module \_quiz_update_resultoptions()
  5. 6.4 quiz.module \_quiz_update_resultoptions()
  6. 6.5 quiz.module \_quiz_update_resultoptions()
  7. 7.6 quiz.module \_quiz_update_resultoptions()
  8. 7 quiz.module \_quiz_update_resultoptions()
  9. 7.4 quiz.module \_quiz_update_resultoptions()
  10. 7.5 quiz.module \_quiz_update_resultoptions()

Modify result of option-specific updates.

Parameters

$node: The quiz node.

1 call to _quiz_update_resultoptions()
quiz_options_form_submit in ./quiz.pages.inc
Page callback for quiz options submit

File

./quiz.module, line 845
Quiz Module

Code

function _quiz_update_resultoptions($node) {

  // Brute force method. Easier to get correct, and probably faster as well.
  db_delete('quiz_node_result_options')
    ->condition('vid', $node
    ->getRevisionId())
    ->execute();
  _quiz_insert_resultoptions($node);
}