moodle/mod/feedback/delete_item_form.php
moodler c70ad9f736 MDL-14493 First checkin of Feedback module into HEAD.
I made a number of small tidy-ups to the contrib version before adding this here:

  - fixed some language string names
  - renamed a capability from deletecompleteds to deletesubmissions (can we use "submissions" everywhere?)
  - got rid of language packs (moved english to correct location)
  - deleted 'pics' type (it needs to be rewritten to use user files in moodledata)
  - moved changelog into README.txt
  - moved captcha font out of subdir
  - bumped version to today

Thanks very much to Andreas Grabs for all your work on this module so far, and congratulations!   :-)
2008-04-23 09:33:54 +00:00

32 lines
804 B
PHP

<?php // $Id$
/**
* prints the form to confirm delete a completed
*
* @version $Id$
* @author Andreas Grabs
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package feedback
*/
require_once $CFG->libdir.'/formslib.php';
class mod_feedback_delete_item_form extends moodleform {
function definition() {
$mform =& $this->_form;
//headline
//$mform->addElement('header', 'general', '');
// hidden elements
$mform->addElement('hidden', 'id');
$mform->addElement('hidden', 'deleteitem');
$mform->addElement('hidden', 'confirmdelete');
//-------------------------------------------------------------------------------
// buttons
$this->add_action_buttons(true, get_string('yes'));
}
}
?>