function quiz_update_6416 in Quiz 6.4
Implementation of hook_update_N
Remove number_of_random_questions from the user settings
File
- ./
quiz.install, line 181 - Quiz install schema for installing the quiz module
Code
function quiz_update_6416() {
$results = array();
db_drop_field($results, 'quiz_user_settings', 'number_of_random_questions');
// Temporary fix, ref: http://drupal.org/node/777408
// TODO: Remove this if and when autoload adds a fix
$results[] = update_sql("UPDATE {system} SET weight = -282828 WHERE name = 'autoload' AND type = 'module'");
return $results;
}