function opigno_simple_ui_modules_enabled in Opigno 7
Implements hook_modules_enabled().
File
- modules/
simple_ui/ opigno_simple_ui.module, line 314
Code
function opigno_simple_ui_modules_enabled($modules) {
$handle = FALSE;
// We cannot use _quiz_question_implementations(), as the modules
// are not enabled yet... Update this list if we find new question
// types.
foreach (array(
'quiz',
'matching',
'multichoice',
'quizfileupload',
'quiz_ddlines',
'quiz_directions',
'scale',
'short_answer',
'truefalse',
'long_answer',
) as $module) {
if (in_array($module, $modules)) {
$handle = TRUE;
break;
}
}
if ($handle) {
module_load_include('inc', 'opigno_simple_ui', 'includes/opigno_simple_ui.quiz');
opigno_simple_ui_update_quiz_labels();
}
}