Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admin option to set default response type option - solves #468 #469

Open
wants to merge 1 commit into
base: MOODLE_400_STABLE
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,14 @@

$settings->add(new admin_setting_configcheckbox('questionnaire/allowemailreporting',
get_string('configemailreporting', 'questionnaire'), get_string('configemailreportinglong', 'questionnaire'), 0));

$questionnairetypes = array (1 => get_string('qtypeonce', 'questionnaire'),
0 => get_string('qtypeunlimited', 'questionnaire'),
2 => get_string('qtypedaily', 'questionnaire'),
3 => get_string('qtypeweekly', 'questionnaire'),
4 => get_string('qtypemonthly', 'questionnaire'));

$settings->add(new admin_setting_configselect('questionnaire/qtype',
get_string('default').': '.get_string('qtype', 'questionnaire'),
get_string('qtype_help', 'questionnaire'), 1, $questionnairetypes));
}