function quiz_update_6306 in Quiz 6.5
Same name and namespace in other branches
- 6.6 quiz.install \quiz_update_6306()
- 6.3 quiz.install \quiz_update_6306()
- 6.4 quiz.install \quiz_update_6306()
Implementation of hook_update_N(). Adding a new field to save timer status for a timed quiz.
File
- ./
quiz.install, line 13 - Quiz install schema for installing the quiz module
Code
function quiz_update_6306() {
$result = array();
db_add_field($result, 'quiz_node_results', 'time_left', array(
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
));
return $result;
}