forked from danmarsden/moodle-plagiarism_new
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplagiarism_form copy.php
More file actions
24 lines (19 loc) · 1.02 KB
/
plagiarism_form copy.php
File metadata and controls
24 lines (19 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once($CFG->dirroot.'/lib/formslib.php');
class plagiarism_settings_form extends moodleform {
// Define the form
function definition () {
global $CFG;
$mform =& $this->_form;
$radioarray=array();
$attributes=[];
$radioarray[] = $mform->createElement('radio', 'preset', '', get_string('Default recommended'), 0, $attributes);
$radioarray[] = $mform->createElement('radio', 'preset', '', get_string('Minor edit'), 1, $attributes);
$radioarray[] = $mform->createElement('radio', 'preset', '', get_string('Absolute Matching'), 2, $attributes);
$radioarray[] = $mform->createElement('radio', 'preset', '', get_string('Remove Header and Footer'), 3, $attributes);
$mform->setDefault('preset', 0);
//$radioarray[] = $mform->createElement('radio', 'preset', '', get_string('Remove Header and Footer'), 0, $attributes);
$mform->addGroup($radioarray, 'radioar', '', array(' '), false);
$this->add_action_buttons(false);
}
}