From: tjhunt Date: Wed, 29 Jul 2009 05:19:39 +0000 (+0000) Subject: blocks: MDL-19889 Convert mentees block to use edit_form.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f34b1a71a034fa0786757a525beee7bf90576800;p=moodle.git blocks: MDL-19889 Convert mentees block to use edit_form.php --- diff --git a/blocks/mentees/config_instance.html b/blocks/mentees/config_instance.html deleted file mode 100755 index 09f765c29d..0000000000 --- a/blocks/mentees/config_instance.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - -
: ()
-
- diff --git a/blocks/mentees/edit_form.php b/blocks/mentees/edit_form.php new file mode 100644 index 0000000000..ef811b8344 --- /dev/null +++ b/blocks/mentees/edit_form.php @@ -0,0 +1,40 @@ +. + +/** + * Form for editing Mentees block instances. + * + * @package moodlecore + * @copyright 2009 Tim Hunt + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +/** + * Form for editing Mentees block instances. + * + * @copyright 2009 Tim Hunt + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class block_mentees_edit_form extends block_edit_form { + protected function specific_definition($mform) { + // Fields for editing HTML block title and contents. + $mform->addElement('header', 'configheader', get_string('blocksettings', 'block')); + + $mform->addElement('text', 'config_title', get_string('configtitleblankhides', 'block_mentees')); + $mform->setType('config_title', PARAM_MULTILANG); + } +} \ No newline at end of file