You are here

function _quiz_update_resultoptions in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.module \_quiz_update_resultoptions()
  2. 5.2 quiz.module \_quiz_update_resultoptions()
  3. 6.6 quiz.module \_quiz_update_resultoptions()
  4. 6.2 quiz.module \_quiz_update_resultoptions()
  5. 6.3 quiz.module \_quiz_update_resultoptions()
  6. 6.4 quiz.module \_quiz_update_resultoptions()
  7. 6.5 quiz.module \_quiz_update_resultoptions()
  8. 7.6 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_update in ./quiz.module
Implements hook_update().

File

./quiz.module, line 3187
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->vid)
    ->execute();
  _quiz_insert_resultoptions($node);
}