function quiz_update_7511 in Quiz 7.6
Same name and namespace in other branches
- 7.5 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 967 - 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';
$row->review_options = $d;
drupal_write_record('quiz_node_properties', $row, array(
'qnp_id',
));
}
}