opigno_scorm_quiz.install in Opigno 7
Install logic.
File
modules/scorm/quiz/opigno_scorm_quiz.installView source
<?php
/**
* @file
* Install logic.
*/
/**
* Implements hook_schema().
*/
function opigno_scorm_quiz_schema() {
return array(
'opigno_scorm_quiz_user_results' => array(
'fields' => array(
'question_nid' => array(
'type' => 'int',
'unsiged' => TRUE,
'not null' => TRUE,
),
'question_vid' => array(
'type' => 'int',
'unsiged' => TRUE,
'not null' => TRUE,
),
'result_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'score_scaled' => array(
'type' => 'float',
'size' => 'big',
),
),
'primary key' => array(
'question_nid',
'question_vid',
'result_id',
),
),
);
}
Functions
Name | Description |
---|---|
opigno_scorm_quiz_schema | Implements hook_schema(). |