function opigno_tincan_api_quiz_statements_tincan_question_statement_quiz_directions_alter in Opigno TinCan API 7
File
- modules/
opigno_tincan_api_quiz_statements/ opigno_tincan_api_quiz_statements.questions_alter.inc, line 140
Code
function opigno_tincan_api_quiz_statements_tincan_question_statement_quiz_directions_alter(TinCan\Statement &$statement, $question, $answers) {
/******
** Set the result
***/
_opigno_tincan_api_set_result($statement, null, null, $question->correct);
// TODO: Change the verb here and remove the InteractionType content
/******
** Set the interaction type properties
***/
$objectDefinition = _opigno_tincan_api_get_object_definition($statement);
$objectDefinition
->setInteractionType(OpignoTincanApiTinCanInteractionTypes::$other);
}