1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-22 12:10:08 +00:00
moodle-plagiarism_pchkorg/form/send_text_form.php

30 lines
705 B
PHP
Raw Normal View History

2018-11-01 14:21:14 +00:00
<?php
// moodleform is defined in formslib.php
2018-11-01 14:21:14 +00:00
require_once("$CFG->libdir/formslib.php");
class send_text_form extends moodleform
{
// Add elements to form
2018-11-01 14:21:14 +00:00
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
2018-11-01 14:21:14 +00:00
function validation($data, $files)
{
return array();
}
}