MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice...
[moodle.git] / mod / feedback / delete_template_form.php
1 <?php
2 /**
3 * prints the form to confirm delete a completed
4 *
5 * @author Andreas Grabs
6 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
7 * @package feedback
8 */
10 if (!defined('MOODLE_INTERNAL')) {
11     die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
12 }
14 require_once $CFG->libdir.'/formslib.php';
16 class mod_feedback_delete_template_form extends moodleform {
17     function definition() {
18         $mform =& $this->_form;
20         //headline
21         //$mform->addElement('header', 'general', '');
23         // hidden elements
24         $mform->addElement('hidden', 'id');
25         $mform->setType('id', PARAM_INT);
26         $mform->addElement('hidden', 'deletetempl');
27         $mform->setType('deletetempl', PARAM_INT);
28         $mform->addElement('hidden', 'confirmdelete');
29         $mform->setType('confirmdelete', PARAM_INT);
31         //-------------------------------------------------------------------------------
32         // buttons
33         $this->add_action_buttons(true, get_string('yes'));
35     }
36 }