function _quiz_update_resultoptions in Quiz 7
Same name and namespace in other branches
- 8.4 quiz.module \_quiz_update_resultoptions()
- 5.2 quiz.module \_quiz_update_resultoptions()
- 6.6 quiz.module \_quiz_update_resultoptions()
- 6.2 quiz.module \_quiz_update_resultoptions()
- 6.3 quiz.module \_quiz_update_resultoptions()
- 6.4 quiz.module \_quiz_update_resultoptions()
- 6.5 quiz.module \_quiz_update_resultoptions()
- 7.6 quiz.module \_quiz_update_resultoptions()
- 7.4 quiz.module \_quiz_update_resultoptions()
- 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);
}