function _quiz_update_resultoptions in Quiz 8.4
Same name and namespace in other branches
- 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 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_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);
}