Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the current version of this module is not saved settings checkboxes:
Multiple answers, Random order, Simple scoring.
And the database does not create the dependent variables:
qq_import_choice_multi, qq_import_choice_random, qq_import_choice_boolean.
The problem was solved by making the following changes to the file qq_import.admin.int
I deleted the line with #parent relating to these forms.
$form['qq_import_multichoice']['qq_import_choice_multi'] = array(
'#type' => 'checkbox',
'#title' => t('Multiple answers'),
'#description' => t('Allow any number of answers(checkboxes are used). If this box is not checked, one, and only one answer is allowed(radiobuttons are used).'),
'#default_value' => variable_get('qq_import_choice_multi', 0),
//'#parents' => array('choice_multi'), //delete a row
);
$form['qq_import_multichoice']['qq_import_choice_random'] = array(
'#type' => 'checkbox',
'#title' => t('Random order'),
'#description' => t('Present alternatives in random order when quiz is being taken.'),
'#default_value' => variable_get('qq_import_choice_random', 1),
//'#parents' => array('choice_random'), //delete a row
);
$form['qq_import_multichoice']['qq_import_choice_boolean'] = array(
'#type' => 'checkbox',
'#title' => t('Simple scoring'),
'#description' => t('Give max score if everything is correct. Zero points otherwise.'),
'#default_value' => variable_get('qq_import_choice_boolean', 0),
//'#parents' => array('choice_boolean'), //delete a row
);
Comments
Comment #1
_Gusev_ CreditAttribution: _Gusev_ commentedComment #2
ganesan g CreditAttribution: ganesan g commentedComment #3
ganesan g CreditAttribution: ganesan g commented@_Gusev_ thanks for reporting this issue.
@sivaji #parents is removed now and committed to git.