function quiz_question_update_6401 in Quiz 6.4
Implementation of hook_update_N()
In 6.x-3.x truefalse was a part of quiz question. In 4.x it has been separated out into its own module. We automatically installs this module to avoid issues with truefalse questions that aren't working anymore because the module haven't been installed.
File
- question_types/
quiz_question/ quiz_question.install, line 84 - The installer file for quiz_question.
Code
function quiz_question_update_6401() {
if (!module_exists('truefalse') && db_table_exists('quiz_truefalse_node')) {
drupal_install_modules(array(
'truefalse',
));
}
return array();
}