mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 12:10:08 +00:00
29 lines
701 B
PHP
29 lines
701 B
PHP
<?php
|
|
|
|
//moodleform is defined in formslib.php
|
|
require_once("$CFG->libdir/formslib.php");
|
|
|
|
class send_text_form extends moodleform
|
|
{
|
|
//Add elements to form
|
|
public function definition()
|
|
{
|
|
global $CFG;
|
|
|
|
$mform = $this->_form; // Don't forget the underscore!
|
|
|
|
$mform->addElement('hidden', 'fileid', '');
|
|
$mform->setType('fileid', PARAM_INT);
|
|
$mform->addElement('hidden', 'cmid', '');
|
|
$mform->setType('cmid', PARAM_INT);
|
|
|
|
$this->add_action_buttons(false, get_string('pchkorg_submit', 'plagiarism_pchkorg'));
|
|
|
|
}
|
|
|
|
//Custom validation should be added here
|
|
function validation($data, $files)
|
|
{
|
|
return array();
|
|
}
|
|
} |