function multichoice_update_6400 in Quiz 6.4
Implementation of hook_update_N().
Multichoice has been rewritten to extend quiz question for quiz 4.x This update hook converts the database
File
- question_types/
multichoice/ multichoice.install, line 226 - Sponsored by: Norwegian Centre for Telemedicine Code: falcon
Code
function multichoice_update_6400(&$sandbox = NULL) {
if (!module_exists('autoload')) {
drupal_install_modules(array(
'autoload',
'quiz_question',
));
if (!module_exists('autoload')) {
return array(
'#abort' => array(
'success' => FALSE,
'query' => 'The <a href="http://drupal.org/project/autoload">Autoload</a> module is missing. You need to <a href="http://drupal.org/project/autoload">download</a> and enable autoload before you run update.php.',
),
);
}
}
$path = drupal_get_path('module', 'multichoice');
// This is a big update. We have put it in its own file to avoid cluttering
// this install file
require_once "{$path}/multichoice_update_6400.inc";
return _multichoice_update_6400($sandbox);
}