function quiz_update_7511 in Quiz 7.5
Same name and namespace in other branches
- 7.6 quiz.install \quiz_update_7511()
Add "Question: Full" and "Choices" to all quiz feedback options to mimic the behavior before this update.
File
- ./
quiz.install, line 1035 - Quiz install schema for installing the quiz module.
Code
function quiz_update_7511() {
$result = db_query('SELECT * FROM {quiz_node_properties}');
while ($row = $result
->fetch()) {
$d = unserialize($row->review_options);
$d['end']['quiz_question_view_full'] = 'quiz_question_view_full';
$d['end']['choice'] = 'choice';
$d['end']['attempt'] = 'attempt';
$row->review_options = $d;
drupal_write_record('quiz_node_properties', $row, array(
'qnp_id',
));
}
}